File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ describe(`${postApiPath} routes`, () => {
9999 } ) ;
100100
101101 expect ( updatePostResponse . statusCode ) . toBe ( HttpCode . FORBIDDEN ) ;
102- expect ( getPostResponse . json ( ) ) . toEqual ( post ) ;
102+ expect ( getPostResponse . json ( ) ) . toMatchObject ( post ) ;
103103 } ) ;
104104
105105 it ( `should return ${ HttpCode . OK } with updated post` , async ( ) => {
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ describe(`${commentApiPath} routes`, () => {
105105 } ) ;
106106
107107 expect ( updateCommentResponse . statusCode ) . toBe ( HttpCode . FORBIDDEN ) ;
108- expect ( getCommentResponse . json ( ) ) . toEqual ( comment ) ;
108+ expect ( getCommentResponse . json ( ) ) . toMatchObject ( comment ) ;
109109 } ) ;
110110
111111 it ( `should return ${ HttpCode . OK } with updated comment` , async ( ) => {
You can’t perform that action at this time.
0 commit comments