Skip to content

Commit e1154e4

Browse files
committed
feat(wrappednodefetch.test.ts): importing HTTP from src/keploy.ts
importing HTTP from src/keploy.ts test #354
1 parent 2179fbf commit e1154e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/wrappedNodeFetch.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { wrappedNodeFetch } from '../integrations/octokit/require';
22
import { Response } from 'node-fetch';
33
import { createExecutionContext, getExecutionContext} from '../src/context';
4+
import { HTTP } from '../src/keploy';
5+
46
describe('wrappedNodeFetch', () => {
57
it('should call fetch function with correct arguments in record mode', async () => {
68
const mockFetch = jest.fn().mockResolvedValueOnce(new Response());
@@ -41,7 +43,7 @@ describe('wrappedNodeFetch', () => {
4143
{
4244
Version: 'V1_BETA2',
4345
Name: 'testId',
44-
Kind: 'HTTP',
46+
Kind: HTTP,
4547
Spec: {
4648
Metadata: {
4749
name: 'node-fetch',

0 commit comments

Comments
 (0)