chore(util-registry): fix test

This commit is contained in:
Gregor Kleen 2020-05-19 10:38:56 +02:00
parent d0ce45ba31
commit cb950ec6bf

View File

@ -116,9 +116,9 @@ describe('UtilRegistry', () => {
utilRegistry.initAll();
expect(utilRegistry.setup.calls.count()).toBe(3);
expect(utilRegistry.setup.calls.argsFor(0)).toEqual([TestUtil1, undefined]);
expect(utilRegistry.setup.calls.argsFor(1)).toEqual([TestUtil2, undefined]);
expect(utilRegistry.setup.calls.argsFor(2)).toEqual([TestUtil3, undefined]);
expect(utilRegistry.setup.calls.argsFor(0)).toEqual([TestUtil1, document.body]);
expect(utilRegistry.setup.calls.argsFor(1)).toEqual([TestUtil2, document.body]);
expect(utilRegistry.setup.calls.argsFor(2)).toEqual([TestUtil3, document.body]);
});
it('should pass the given scope', () => {