diff --git a/test/app/mocks.js b/test/app/mocks.js index 0ca0eb1..1b260f1 100644 --- a/test/app/mocks.js +++ b/test/app/mocks.js @@ -47,6 +47,9 @@ global.RouterMock = function() { }; global.AuthServiceMock = { + userOptions: { + show_animations: false + }, userChanged: RxJs.Observable.of({ id: 1, username: 'tester', diff --git a/test/app/shared/modal/modal.service.spec.js b/test/app/shared/modal/modal.service.spec.js index 1855d8d..405fcf9 100644 --- a/test/app/shared/modal/modal.service.spec.js +++ b/test/app/shared/modal/modal.service.spec.js @@ -1,4 +1,4 @@ -/* globals expect */ +/* globals expect AuthServiceMock */ var path = '../../../../build/shared/modal/', ModalService = require(path + 'modal.service.js').ModalService; @@ -7,7 +7,7 @@ describe('ModalService', () => { modal; beforeEach(() => { - modalService = new ModalService(); + modalService = new ModalService(AuthServiceMock); modal = { modalId: 'testModal', isOpen: false