Skip to content

Commit

Permalink
feat(wrappednodefetch.test.ts): importing HTTP from src/keploy.ts
Browse files Browse the repository at this point in the history
importing HTTP from src/keploy.ts

test #354
  • Loading branch information
Hermione2408 committed Mar 10, 2023
1 parent 2179fbf commit e1154e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/wrappedNodeFetch.test.ts
Original file line number Diff line number Diff line change
@@ -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());
Expand Down Expand Up @@ -41,7 +43,7 @@ describe('wrappedNodeFetch', () => {
{
Version: 'V1_BETA2',
Name: 'testId',
Kind: 'HTTP',
Kind: HTTP,
Spec: {
Metadata: {
name: 'node-fetch',
Expand Down

0 comments on commit e1154e4

Please sign in to comment.