Update failing tests

This commit is contained in:
kiswa 2016-08-29 12:54:01 +00:00
parent 93a1bf4ebb
commit 183a76414b
2 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,9 @@ global.RouterMock = function() {
};
global.AuthServiceMock = {
userOptions: {
show_animations: false
},
userChanged: RxJs.Observable.of({
id: 1,
username: 'tester',

View File

@ -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