File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,16 +168,16 @@ describe("ofetch", () => {
168
168
method : "POST" ,
169
169
body : data ,
170
170
} ) ;
171
- expect ( body ) . to . eq ( " foo= bar" ) ;
171
+ expect ( body ) . toMatchObject ( { foo : ' bar' } ) ;
172
172
} ) ;
173
173
174
174
it ( "404" , async ( ) => {
175
175
const error = await $fetch ( getURL ( "404" ) ) . catch ( ( error_ ) => error_ ) ;
176
- expect ( error . toString ( ) ) . to . contain ( "Cannot find any route matching /404." ) ;
176
+ expect ( error . toString ( ) ) . to . contain ( "Cannot find any path matching /404." ) ;
177
177
expect ( error . data ) . to . deep . eq ( {
178
178
stack : [ ] ,
179
179
statusCode : 404 ,
180
- statusMessage : "Cannot find any route matching /404." ,
180
+ statusMessage : "Cannot find any path matching /404." ,
181
181
} ) ;
182
182
expect ( error . response ?. _data ) . to . deep . eq ( error . data ) ;
183
183
expect ( error . request ) . to . equal ( getURL ( "404" ) ) ;
You can’t perform that action at this time.
0 commit comments