add another test for UtilRegistry
This commit is contained in:
parent
cb2895e1f8
commit
bb411a1a28
@ -21,6 +21,12 @@ describe('UtilRegistry', () => {
|
|||||||
expect(utilRegistry).toBeTruthy();
|
expect(utilRegistry).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should setup all utlites when page is done loading', () => {
|
||||||
|
spyOn(utilRegistry, 'setupAll');
|
||||||
|
document.dispatchEvent(new Event('DOMContentLoaded'));
|
||||||
|
expect(utilRegistry.setupAll).toHaveBeenCalled();
|
||||||
|
});
|
||||||
|
|
||||||
describe('register()', () => {
|
describe('register()', () => {
|
||||||
it('should allow to add utilities', () => {
|
it('should allow to add utilities', () => {
|
||||||
utilRegistry.register(TEST_UTILS[0]);
|
utilRegistry.register(TEST_UTILS[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user