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:
Lukas Eipert 2019-01-23 12:39:46 +01:00
parent 7db474ff78
commit 0152cb0dd4
No known key found for this signature in database
GPG Key ID: 148BEA37CB35B2AC
1 changed files with 2 additions and 0 deletions

View File

@ -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;