Skip to content

Commit

Permalink
update (note parents tests): the issue of test failure is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dependentmadani committed Sep 26, 2024
1 parent fee9bbf commit d65c589
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/presentation/http/router/note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
Expand Down Expand Up @@ -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,
},
],
Expand Down Expand Up @@ -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,
},
],
Expand Down Expand Up @@ -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,
},
],
Expand Down

0 comments on commit d65c589

Please sign in to comment.