From d65c5891a920c023a1f5dca5bd1ddaf256e1380e Mon Sep 17 00:00:00 2001 From: dependentmadani Date: Thu, 26 Sep 2024 19:55:34 +0100 Subject: [PATCH] update (note parents tests): the issue of test failure is fixed --- src/presentation/http/router/note.test.ts | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/presentation/http/router/note.test.ts b/src/presentation/http/router/note.test.ts index 1a794b78..ae2656b6 100644 --- a/src/presentation/http/router/note.test.ts +++ b/src/presentation/http/router/note.test.ts @@ -605,13 +605,13 @@ describe('Note API', () => { expect(response?.statusCode).toBe(200); expect(response?.json()).toMatchObject({ - parentStructure: [ + parents: [ { - noteId: parentNote.publicId, + id: parentNote.publicId, content: parentNote.content, }, { - noteId: childNote.publicId, + id: childNote.publicId, content: childNote.content, }, ], @@ -669,17 +669,17 @@ describe('Note API', () => { expect(response?.statusCode).toBe(200); expect(response?.json()).toMatchObject({ - parentStructure: [ + parents: [ { - noteId: grandParentNote.publicId, + id: grandParentNote.publicId, content: grandParentNote.content, }, { - noteId: parentNote.publicId, + id: parentNote.publicId, content: parentNote.content, }, { - noteId: childNote.publicId, + id: childNote.publicId, content: childNote.content, }, ], @@ -729,13 +729,13 @@ describe('Note API', () => { expect(response?.statusCode).toBe(200); expect(response?.json()).toMatchObject({ - parentStructure: [ + parents: [ { - noteId: parentNote.publicId, + id: parentNote.publicId, content: parentNote.content, }, { - noteId: childNote.publicId, + id: childNote.publicId, content: childNote.content, }, ], @@ -771,9 +771,9 @@ describe('Note API', () => { expect(response?.statusCode).toBe(200); expect(response?.json()).toMatchObject({ - parentStructure: [ + parents: [ { - noteId: note.publicId, + id: note.publicId, content: note.content, }, ],