File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ describe("callable CORS", () => {
276276 const response = await runHandler ( func , req as any ) ;
277277
278278 expect ( response . status ) . to . equal ( 200 ) ;
279- expect ( response . body ) . to . be . deep . equal ( { result : 42 } ) ;
279+ expect ( response . body ) . to . be . deep . equal ( JSON . stringify ( { result : 42 } ) ) ;
280280 expect ( response . headers ) . to . deep . equal ( expectedResponseHeaders ) ;
281281 } ) ;
282282} ) ;
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ describe("onCall", () => {
417417 req . method = "POST" ;
418418
419419 const resp = await runHandler ( func , req as any ) ;
420- expect ( resp . body ) . to . deep . equal ( { result : 42 } ) ;
420+ expect ( resp . body ) . to . deep . equal ( JSON . stringify ( { result : 42 } ) ) ;
421421 } ) ;
422422
423423 it ( "should enforce CORS options" , async ( ) => {
@@ -496,7 +496,7 @@ describe("onCall", () => {
496496 const response = await runHandler ( func , req as any ) ;
497497
498498 expect ( response . status ) . to . equal ( 200 ) ;
499- expect ( response . body ) . to . be . deep . equal ( { result : 42 } ) ;
499+ expect ( response . body ) . to . be . deep . equal ( JSON . stringify ( { result : 42 } ) ) ;
500500 expect ( response . headers ) . to . deep . equal ( expectedResponseHeaders ) ;
501501 } ) ;
502502
You can’t perform that action at this time.
0 commit comments