Commit 0152cb0d authored by Lukas Eipert's avatar Lukas Eipert

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.
parent 7db474ff
...@@ -33,11 +33,13 @@ describe('DiscussionCounter component', () => { ...@@ -33,11 +33,13 @@ describe('DiscussionCounter component', () => {
...discussionMock, ...discussionMock,
id: discussionMock.id, id: discussionMock.id,
notes: [{ ...discussionMock.notes[0], resolvable: true, resolved: true }], notes: [{ ...discussionMock.notes[0], resolvable: true, resolved: true }],
resolved: true,
}, },
{ {
...discussionMock, ...discussionMock,
id: discussionMock.id + 1, id: discussionMock.id + 1,
notes: [{ ...discussionMock.notes[0], resolvable: true, resolved: false }], notes: [{ ...discussionMock.notes[0], resolvable: true, resolved: false }],
resolved: false,
}, },
]; ];
const firstDiscussionId = discussionMock.id + 1; const firstDiscussionId = discussionMock.id + 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment