From 0152cb0dd413b30b9473741959fac92ac1742a78 Mon Sep 17 00:00:00 2001 From: Lukas Eipert Date: Wed, 23 Jan 2019 12:39:46 +0100 Subject: [PATCH] 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. --- spec/javascripts/notes/components/discussion_counter_spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/javascripts/notes/components/discussion_counter_spec.js b/spec/javascripts/notes/components/discussion_counter_spec.js index d09bc5037ef..fecc0d604b1 100644 --- a/spec/javascripts/notes/components/discussion_counter_spec.js +++ b/spec/javascripts/notes/components/discussion_counter_spec.js @@ -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;