chore(util-registry): fix test
This commit is contained in:
parent
d0ce45ba31
commit
cb950ec6bf
@ -116,9 +116,9 @@ describe('UtilRegistry', () => {
|
|||||||
utilRegistry.initAll();
|
utilRegistry.initAll();
|
||||||
|
|
||||||
expect(utilRegistry.setup.calls.count()).toBe(3);
|
expect(utilRegistry.setup.calls.count()).toBe(3);
|
||||||
expect(utilRegistry.setup.calls.argsFor(0)).toEqual([TestUtil1, undefined]);
|
expect(utilRegistry.setup.calls.argsFor(0)).toEqual([TestUtil1, document.body]);
|
||||||
expect(utilRegistry.setup.calls.argsFor(1)).toEqual([TestUtil2, undefined]);
|
expect(utilRegistry.setup.calls.argsFor(1)).toEqual([TestUtil2, document.body]);
|
||||||
expect(utilRegistry.setup.calls.argsFor(2)).toEqual([TestUtil3, undefined]);
|
expect(utilRegistry.setup.calls.argsFor(2)).toEqual([TestUtil3, document.body]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should pass the given scope', () => {
|
it('should pass the given scope', () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user