Skip to content

Commit 9a05a16

Browse files
fix: added new field to tests
Now we are waiting for creatorId field from notes api
1 parent 4a464c7 commit 9a05a16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/presentation/http/router/note.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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).not.toBeNull();
288289
} else {
289290
expect(response?.json()).toStrictEqual({
290291
message: expectedMessage,

0 commit comments

Comments
 (0)