File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/server/tests/api Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2340,8 +2340,8 @@ describe('REST server tests', () => {
23402340 prisma,
23412341 } ) ;
23422342
2343- expect ( r . status ) . toBe ( 204 ) ;
2344- expect ( r . body ) . toBeUndefined ( ) ;
2343+ expect ( r . status ) . toBe ( 200 ) ;
2344+ expect ( r . body ) . toMatchObject ( { meta : { } } ) ;
23452345 } ) ;
23462346
23472347 it ( 'deletes an item with compound id' , async ( ) => {
@@ -2355,8 +2355,8 @@ describe('REST server tests', () => {
23552355 path : `/postLike/1${ idDivider } user1` ,
23562356 prisma,
23572357 } ) ;
2358- expect ( r . status ) . toBe ( 204 ) ;
2359- expect ( r . body ) . toBeUndefined ( ) ;
2358+ expect ( r . status ) . toBe ( 200 ) ;
2359+ expect ( r . body ) . toMatchObject ( { meta : { } } ) ;
23602360 } ) ;
23612361
23622362 it ( 'returns 404 if the user does not exist' , async ( ) => {
You can’t perform that action at this time.
0 commit comments