fix: fix app frontend test
This commit is contained in:
parent
cd3e72c0f1
commit
49bafe1276
@ -23,7 +23,7 @@ describe('App', () => {
|
|||||||
expect(global.App).toBeTruthy();
|
expect(global.App).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should setup all utlites when page is done loading', () => {
|
it('should init all utlites when page is done loading', () => {
|
||||||
spyOn(global.App.utilRegistry, 'initAll');
|
spyOn(global.App.utilRegistry, 'initAll');
|
||||||
document.dispatchEvent(new Event('DOMContentLoaded'));
|
document.dispatchEvent(new Event('DOMContentLoaded'));
|
||||||
expect(global.App.utilRegistry.initAll).toHaveBeenCalled();
|
expect(global.App.utilRegistry.initAll).toHaveBeenCalled();
|
||||||
|
|||||||
Reference in New Issue
Block a user