File tree 1 file changed +4
-3
lines changed
packages/utils/src/http-client
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- import { HttpClientCreateOptions , HttpClient } from './http-client'
1
+ import { HttpClient , HttpClientCreateOptions } from './http-client'
2
2
3
3
describe ( 'HttpClient' , ( ) => {
4
4
it ( 'should configure base url' , async ( ) => {
@@ -124,7 +124,7 @@ describe('HttpClient', () => {
124
124
method : 'GET'
125
125
} ,
126
126
result : '' ,
127
- status : undefined
127
+ status : 200
128
128
} )
129
129
} )
130
130
} )
@@ -135,7 +135,8 @@ function setup<T>(options?: HttpClientCreateOptions & Partial<{ result: T }>) {
135
135
Promise . resolve ( {
136
136
text : ( ) => Promise . resolve ( JSON . stringify ( options ?. result ?? { foo : 'bar' } ) ) ,
137
137
ok : true ,
138
- headers : new Headers ( )
138
+ headers : new Headers ( ) ,
139
+ status : 200
139
140
} )
140
141
)
141
142
window . fetch = fetchMock
You can’t perform that action at this time.
0 commit comments