Update failing tests
This commit is contained in:
parent
93a1bf4ebb
commit
183a76414b
@ -47,6 +47,9 @@ global.RouterMock = function() {
|
||||
};
|
||||
|
||||
global.AuthServiceMock = {
|
||||
userOptions: {
|
||||
show_animations: false
|
||||
},
|
||||
userChanged: RxJs.Observable.of({
|
||||
id: 1,
|
||||
username: 'tester',
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user