Skip to content

Commit ad0b335

Browse files
committed
test(wrappednodefetch): updating checks
updating test cases test #354
1 parent 6cdf1d6 commit ad0b335

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/wrappedNodeFetch.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ describe('wrappedNodeFetch', () => {
2020
};
2121
const response = await wrappedFetch(url, options);
2222
const updatedctx= getExecutionContext().context;
23-
const mocks=updatedctx.mocks.length;
24-
const deps=updatedctx.deps.length;
2523
const responseBody = await response.text();
2624
const recordedOutput = updatedctx.mocks[0].Spec.Res.Body;
2725
expect(response).toBeInstanceOf(Response);
28-
expect(mocks).toBeGreaterThan(0);
29-
expect(deps).toBeGreaterThan(0);
26+
expect(updatedctx.mocks.length).toBeGreaterThan(0);
27+
expect(updatedctx.deps.length).toBeGreaterThan(0);
3028
expect(response).toHaveProperty('body');
3129
expect(responseBody).toEqual(recordedOutput);
3230
});

0 commit comments

Comments
 (0)