From e1154e4f5a3a032cb6aee59c4487ebd48b0c0563 Mon Sep 17 00:00:00 2001 From: Hermione Dadheech Date: Fri, 10 Mar 2023 12:48:38 +0530 Subject: [PATCH] feat(wrappednodefetch.test.ts): importing HTTP from src/keploy.ts importing HTTP from src/keploy.ts test #354 --- test/wrappedNodeFetch.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/wrappedNodeFetch.test.ts b/test/wrappedNodeFetch.test.ts index 3da609e..2e7adb8 100644 --- a/test/wrappedNodeFetch.test.ts +++ b/test/wrappedNodeFetch.test.ts @@ -1,6 +1,8 @@ import { wrappedNodeFetch } from '../integrations/octokit/require'; import { Response } from 'node-fetch'; import { createExecutionContext, getExecutionContext} from '../src/context'; +import { HTTP } from '../src/keploy'; + describe('wrappedNodeFetch', () => { it('should call fetch function with correct arguments in record mode', async () => { const mockFetch = jest.fn().mockResolvedValueOnce(new Response()); @@ -41,7 +43,7 @@ describe('wrappedNodeFetch', () => { { Version: 'V1_BETA2', Name: 'testId', - Kind: 'HTTP', + Kind: HTTP, Spec: { Metadata: { name: 'node-fetch',