From cb950ec6bf5c8cbc01a11f2a61ef0c95415c2045 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 19 May 2020 10:38:56 +0200 Subject: [PATCH] chore(util-registry): fix test --- frontend/src/services/util-registry/util-registry.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/services/util-registry/util-registry.spec.js b/frontend/src/services/util-registry/util-registry.spec.js index 510033cf8..07b9e2627 100644 --- a/frontend/src/services/util-registry/util-registry.spec.js +++ b/frontend/src/services/util-registry/util-registry.spec.js @@ -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', () => {