You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleFor('route:application', 'Application', {
beforeEach: function () {},
afterEach: function () {}
});
test('It can receive an action', function(assert) {
var subject = this.subject();
subject.send('doSomething');
});
It fails with:
TypeError: Cannot read property 'trigger' of undefined
This is the send action on the router itself, which it appears it is because this.router is null on that object.
ember-qunit: 0.4.0
ember: 1.13.0-beta.2
This was working with Ember 1.12, so I'm assuming this is an API change on that end. The simple solution is to stub out router on the route instance and everything works as expected. Perhaps there is a fix here, or maybe it would be better to have a moduleForRoute that does some extra setup?
(Sorry if this isn't the correct repo to post to).
The text was updated successfully, but these errors were encountered:
With a simple Route test:
It fails with:
This is the
send
action on the router itself, which it appears it is becausethis.router
is null on that object.ember-qunit: 0.4.0
ember: 1.13.0-beta.2
This was working with Ember 1.12, so I'm assuming this is an API change on that end. The simple solution is to stub out
router
on the route instance and everything works as expected. Perhaps there is a fix here, or maybe it would be better to have amoduleForRoute
that does some extra setup?(Sorry if this isn't the correct repo to post to).
The text was updated successfully, but these errors were encountered: