Skip to content

Commit ec04ddd

Browse files
christopherthielenmergify[bot]
authored andcommitted
test: spy on urlService not the deprecated urlRouter variable
1 parent 414e5a5 commit ec04ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__tests__/core.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ describe('UIRouterReact class', () => {
1212
});
1313

1414
it('starts the router with start() method', () => {
15-
let urlRouterListenSpy = jest.spyOn(router.urlRouter, 'listen');
16-
let urlRouterSyncSpy = jest.spyOn(router.urlRouter, 'sync');
15+
let urlRouterListenSpy = jest.spyOn(router.urlService, 'listen');
16+
let urlRouterSyncSpy = jest.spyOn(router.urlService, 'sync');
1717
router.start();
1818
expect(urlRouterListenSpy).toHaveBeenCalled();
1919
expect(urlRouterSyncSpy).toHaveBeenCalled();

0 commit comments

Comments
 (0)