Skip to content

Commit

Permalink
fix: added new field to tests
Browse files Browse the repository at this point in the history
Now we are waiting for creatorId field from notes api
  • Loading branch information
DeadCreator committed Jan 29, 2025
1 parent 4a464c7 commit 9a05a16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/presentation/http/router/note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ describe('Note API', () => {
tools: [headerTool, paragraphTool],
});

/** Check if response has createdAt and updatedAt fields */
/** Check if response has createdAt, updatedAt and creatorId fields */
expect(response?.json().note.createdAt).not.toBeNull();
expect(response?.json().note.updatedAt).not.toBeNull();
expect(response?.json().note.creatorId).not.toBeNull();
} else {
expect(response?.json()).toStrictEqual({
message: expectedMessage,
Expand Down

0 comments on commit 9a05a16

Please sign in to comment.