Call restore for each healthcheck stub in v1 tests

Signed-off-by: Christina Wang <christina@balena.io>
Change-type: patch
This commit is contained in:
Christina Wang 2021-02-18 20:22:41 +09:00
parent 19079ae89d
commit 2953f313e6
No known key found for this signature in database
GPG Key ID: 7C3ED0230F440835

View File

@ -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();