File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
packages/apps/shopify-api/adapters/mock Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,7 @@ import {
16
16
} from '../../runtime/http' ;
17
17
18
18
import { mockTestRequests } from './mock_test_requests' ;
19
-
20
- // Store request init objects for testing purposes
21
- export const mockRequestCapture = {
22
- lastRequestInit : undefined as RequestInit | undefined ,
23
- reset ( ) {
24
- this . lastRequestInit = undefined ;
25
- } ,
26
- } ;
19
+ import { mockRequestCapture } from './mock_request_capture' ;
27
20
28
21
interface MockAdapterArgs extends AdapterArgs {
29
22
rawRequest : NormalizedRequest ;
Original file line number Diff line number Diff line change
1
+ import { RequestInit } from 'node-fetch' ;
2
+
3
+ // Store request init objects for testing purposes
4
+ export const mockRequestCapture = {
5
+ lastRequestInit : undefined as RequestInit | undefined ,
6
+ reset ( ) {
7
+ this . lastRequestInit = undefined ;
8
+ } ,
9
+ } ;
Original file line number Diff line number Diff line change 1
1
import { NormalizedRequest , NormalizedResponse } from '../../runtime/http' ;
2
2
3
- import { mockRequestCapture } from './adapter ' ;
3
+ import { mockRequestCapture } from './mock_request_capture ' ;
4
4
5
5
type RequestListEntry = NormalizedRequest ;
6
6
type ResponseListEntry = NormalizedResponse | Error ;
You can’t perform that action at this time.
0 commit comments