summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-03-01 09:34:16 +0000
committerPhil Hughes <me@iamphill.com>2019-03-01 09:34:16 +0000
commit37541114770f9229acb29e798494a063e1b40d04 (patch)
treefd78ae442d0bd628a835525b2d82d156eaea3c40 /spec
parentd860ab195afbf11118564e6399cd59a8bbd9d622 (diff)
downloadgitlab-ce-37541114770f9229acb29e798494a063e1b40d04.tar.gz
Move EE differences in CE diff files into CE
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/9974, https://gitlab.com/gitlab-org/gitlab-ee/issues/9973, https://gitlab.com/gitlab-org/gitlab-ee/issues/9969
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/notes/stores/getters_spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/javascripts/notes/stores/getters_spec.js b/spec/javascripts/notes/stores/getters_spec.js
index c066975a43b..8f3c493dd4c 100644
--- a/spec/javascripts/notes/stores/getters_spec.js
+++ b/spec/javascripts/notes/stores/getters_spec.js
@@ -261,4 +261,12 @@ describe('Getters Notes Store', () => {
expect(getters.firstUnresolvedDiscussionId(state, localGettersFalsy)(false)).toBeFalsy();
});
});
+
+ describe('getDiscussion', () => {
+ it('returns discussion by ID', () => {
+ state.discussions.push({ id: '1' });
+
+ expect(getters.getDiscussion(state)('1')).toEqual({ id: '1' });
+ });
+ });
});