xolvio / rtd

DEPRECATED: The Test Runner for Meteor
164 stars 37 forks source link

TypeError: 'undefined' is not a constructor (evaluating 'new Deps.Dependency()') #148

Closed tsemana closed 10 years ago

tsemana commented 10 years ago

Getting this error with a very basic class:

now = new Deps.Dependency;

var session = {
  remaining: function () {
    now.depend();
    return this.endDate().getTime() - Date.now();
  },
  done: function () {
    return this.remaining() < 0;
  },
};
xolvio commented 10 years ago

You need to add Deps.Dependency to the stub https://github.com/xolvio/rtd/blob/master/lib/meteor-stubs.js#L193