From 2688210621507d50dfb1f4ed33251dc112a50e3c Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Wed, 27 Jan 2021 09:52:26 +0100 Subject: [PATCH] use the second mock --- plugins/catalog/src/CatalogClientWrapper.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog/src/CatalogClientWrapper.test.ts b/plugins/catalog/src/CatalogClientWrapper.test.ts index de60ca8dd2..0306d10b5d 100644 --- a/plugins/catalog/src/CatalogClientWrapper.test.ts +++ b/plugins/catalog/src/CatalogClientWrapper.test.ts @@ -89,7 +89,7 @@ describe('CatalogClientWrapper', () => { expect.assertions(2); await guestClient.getLocationById('42'); const getLocationById = - MockedCatalogClient.mock.instances[0].getLocationById; + MockedCatalogClient.mock.instances[1].getLocationById; expect(getLocationById).toHaveBeenCalledWith('42', {}); expect(getLocationById).toHaveBeenCalledTimes(1); });