Skip to content

Commit

Permalink
fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Mar 21, 2018
1 parent e74b6b9 commit 21b50c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-routing/tests/system/router_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ moduleFor('Ember Router', class extends AbstractTestCase {

router.currentRouteName = 'route-a';

assert.throws(function() {
expectAssertion(function() {
router.transitionTo('route-b');
}, "A transition was attempted from 'route-a' to 'route-b' but the application instance has already been destroyed.");

assert.throws(function() {
expectAssertion(function() {
router.transitionTo('./route-b/1');
}, "A transition was attempted from 'route-a' to './route-b/1' but the application instance has already been destroyed.");
}
Expand Down

0 comments on commit 21b50c4

Please sign in to comment.