Fix discussion counter spec mock data
To me it seems like the mock data does not match the actual data anymore. I checked the actual data and to me it seems like the resolved property actually should live in the overall discussion object.
This commit is contained in:
parent
7db474ff78
commit
0152cb0dd4
1 changed files with 2 additions and 0 deletions
|
@ -33,11 +33,13 @@ describe('DiscussionCounter component', () => {
|
|||
...discussionMock,
|
||||
id: discussionMock.id,
|
||||
notes: [{ ...discussionMock.notes[0], resolvable: true, resolved: true }],
|
||||
resolved: true,
|
||||
},
|
||||
{
|
||||
...discussionMock,
|
||||
id: discussionMock.id + 1,
|
||||
notes: [{ ...discussionMock.notes[0], resolvable: true, resolved: false }],
|
||||
resolved: false,
|
||||
},
|
||||
];
|
||||
const firstDiscussionId = discussionMock.id + 1;
|
||||
|
|
Loading…
Reference in a new issue