Skip to content

Commit 67cdaa3

Browse files
committed
dev-mode: Log current URL to the console
1 parent f1ee935 commit 67cdaa3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/acceptance/dev-mode-test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if (s.has('devmode')) {
1717
let user = this.server.create('user');
1818
this.authenticateAs(user);
1919

20+
let router = this.owner.lookup('service:router');
21+
router.on('routeDidChange', () => {
22+
console.log(`URL: ${router.currentURL}`);
23+
});
24+
2025
await visit('/');
2126
// eslint-disable-next-line ember/no-pause-test
2227
await this.pauseTest();

0 commit comments

Comments
 (0)