summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2019-03-01 10:23:59 +0000
committerFilipa Lacerda <filipa@gitlab.com>2019-03-01 10:23:59 +0000
commitb98fd8a5a086e08c4d940c163fea70238b6cffb6 (patch)
tree15a6f7ddb489f554205f32e17cb3314ec4822201 /spec
parentb708cfc9f8f7d1a3f50f851a48869644c6ab5bf2 (diff)
parent37541114770f9229acb29e798494a063e1b40d04 (diff)
downloadgitlab-ce-b98fd8a5a086e08c4d940c163fea70238b6cffb6.tar.gz
Merge branch 'note-header-ee-differences' into 'master'
Move EE differences in CE diff files into CE Closes gitlab-ee#9969, gitlab-ee#9973, and gitlab-ee#9974 See merge request gitlab-org/gitlab-ce!25678
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' });
+ });
+ });
});