File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -282,9 +282,10 @@ describe('Note API', () => {
282282 tools : [ headerTool , paragraphTool ] ,
283283 } ) ;
284284
285- /** Check if response has createdAt and updatedAt fields */
285+ /** Check if response has createdAt, updatedAt and creatorId fields */
286286 expect ( response ?. json ( ) . note . createdAt ) . not . toBeNull ( ) ;
287287 expect ( response ?. json ( ) . note . updatedAt ) . not . toBeNull ( ) ;
288+ expect ( response ?. json ( ) . note . creatorId ) . to . be . equal ( creator . id ) ;
288289 } else {
289290 expect ( response ?. json ( ) ) . toStrictEqual ( {
290291 message : expectedMessage ,
Original file line number Diff line number Diff line change @@ -37,5 +37,8 @@ export const NoteSchema = {
3737 type : 'string' ,
3838 format : 'date-time' ,
3939 } ,
40+ creatorId : {
41+ type : 'number' ,
42+ } ,
4043 } ,
4144} ;
You can’t perform that action at this time.
0 commit comments