From d80c966cf137a0e6fd5a59c93edeb5d614c61009 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 7 Oct 2022 16:24:04 +0100 Subject: [PATCH] Fixing test mocks. --- packages/server/src/api/routes/tests/application.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/routes/tests/application.spec.js b/packages/server/src/api/routes/tests/application.spec.js index dcfc2c6d9b..f62665d184 100644 --- a/packages/server/src/api/routes/tests/application.spec.js +++ b/packages/server/src/api/routes/tests/application.spec.js @@ -1,7 +1,7 @@ jest.mock("../../../utilities/redis", () => ({ init: jest.fn(), - getAllLocks: () => { - return [] + getLocksById: () => { + return {} }, doesUserHaveLock: () => { return true