From ad0b3356d85b0bd2fa0f9dbaed88eff813b10f56 Mon Sep 17 00:00:00 2001 From: Hermione Dadheech Date: Tue, 14 Mar 2023 17:28:53 +0530 Subject: [PATCH] test(wrappednodefetch): updating checks updating test cases test #354 --- test/wrappedNodeFetch.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/wrappedNodeFetch.test.ts b/test/wrappedNodeFetch.test.ts index 32ad0c5..4eeaf23 100644 --- a/test/wrappedNodeFetch.test.ts +++ b/test/wrappedNodeFetch.test.ts @@ -20,13 +20,11 @@ describe('wrappedNodeFetch', () => { }; const response = await wrappedFetch(url, options); const updatedctx= getExecutionContext().context; - const mocks=updatedctx.mocks.length; - const deps=updatedctx.deps.length; const responseBody = await response.text(); const recordedOutput = updatedctx.mocks[0].Spec.Res.Body; expect(response).toBeInstanceOf(Response); - expect(mocks).toBeGreaterThan(0); - expect(deps).toBeGreaterThan(0); + expect(updatedctx.mocks.length).toBeGreaterThan(0); + expect(updatedctx.deps.length).toBeGreaterThan(0); expect(response).toHaveProperty('body'); expect(responseBody).toEqual(recordedOutput); });