From 2953f313e6c83ea5a9340c6143f38bc9c7a1e699 Mon Sep 17 00:00:00 2001 From: Christina Wang Date: Thu, 18 Feb 2021 20:22:41 +0900 Subject: [PATCH] Call restore for each healthcheck stub in v1 tests Signed-off-by: Christina Wang Change-type: patch --- test/41-device-api-v1.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/41-device-api-v1.spec.ts b/test/41-device-api-v1.spec.ts index d5218ae2..e14962e0 100644 --- a/test/41-device-api-v1.spec.ts +++ b/test/41-device-api-v1.spec.ts @@ -117,7 +117,7 @@ describe('SupervisorAPI [V1 Endpoints]', () => { } } // Restore healthcheck stubs - healthCheckStubs.forEach((hc) => hc.restore); + healthCheckStubs.forEach((hc) => hc.restore()); // Remove any test data generated await mockedAPI.cleanUp(); appMock.unmockAll();