Skip to content

Commit

Permalink
[BUGFIX release] Fix EmberError import in system/router
Browse files Browse the repository at this point in the history
Fixes a simple mistake while extracting debug.

Fixes 15237
  • Loading branch information
Serabe committed May 13, 2017
1 parent 6e8e474 commit 47e56f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-routing/lib/system/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
deprecateProperty
} from 'ember-metal';
import {
EmberError,
Error as EmberError,
deprecate,
assert,
info
Expand Down
7 changes: 7 additions & 0 deletions packages/ember-routing/tests/system/router_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ QUnit.test('can create a router without an owner', function() {
ok(true, 'no errors were thrown when creating without a container');
});

QUnit.test('[GH#15237] EmberError is imported correctly', function() {
// If we get the right message it means Error is being imported correctly.
throws(function() {
triggerEvent(null, false, []);
}, /because your app hasn't finished transitioning/);
});

QUnit.test('should not create a router.js instance upon init', function() {
let router = createRouter(null, { disableSetup: true });

Expand Down

0 comments on commit 47e56f8

Please sign in to comment.