From 3af90e2f467c232c8b04d6e50ac4e77128a6f5b9 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Sun, 24 Jan 2021 02:12:37 +0100 Subject: [PATCH] Fix test --- .../src/lib/catalog/CatalogIdentityClient.test.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/auth-backend/src/lib/catalog/CatalogIdentityClient.test.ts b/plugins/auth-backend/src/lib/catalog/CatalogIdentityClient.test.ts index e1a45a4465..9137af5e83 100644 --- a/plugins/auth-backend/src/lib/catalog/CatalogIdentityClient.test.ts +++ b/plugins/auth-backend/src/lib/catalog/CatalogIdentityClient.test.ts @@ -33,12 +33,15 @@ describe('CatalogIdentityClient', () => { client.findUser(token, { annotations: { key: 'value' } }); const getEntities = MockedCatalogClient.mock.instances[0].getEntities; - expect(getEntities).toHaveBeenCalledWith(token, { - filter: { - kind: 'user', - 'metadata.annotations.key': 'value', + expect(getEntities).toHaveBeenCalledWith( + { + filter: { + kind: 'user', + 'metadata.annotations.key': 'value', + }, }, - }); + { token }, + ); expect(getEntities).toHaveBeenCalledTimes(1); }); });