Skip to content

Commit 9c14c3c

Browse files
fix: note tests update
Tiny fix in GET note/:notePublicId test
1 parent 9a05a16 commit 9c14c3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ describe('Note API', () => {
285285
/** 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();
288+
expect(response?.json().note.creatorId).to.be.equal(creator.id);
289289
} else {
290290
expect(response?.json()).toStrictEqual({
291291
message: expectedMessage,

0 commit comments

Comments
 (0)