summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-08-04 11:27:11 +0100
committerPhil Hughes <me@iamphill.com>2016-08-04 11:27:11 +0100
commita3a672095d00e98499153d4dc598f4e1210d65f2 (patch)
tree21dc5327bbe9c0e72d68e4d081bc06b085a82146 /spec/javascripts
parent69c7fc5f723fd96fb382de58ba6fd271a43d335b (diff)
downloadgitlab-ce-a3a672095d00e98499153d4dc598f4e1210d65f2.tar.gz
Fixed issue with expand diff not initializing resolve buttons
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/diff_comments_store_spec.js.es63
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/diff_comments_store_spec.js.es6 b/spec/javascripts/diff_comments_store_spec.js.es6
index a82a4cd9df9..22293d4de87 100644
--- a/spec/javascripts/diff_comments_store_spec.js.es6
+++ b/spec/javascripts/diff_comments_store_spec.js.es6
@@ -4,7 +4,7 @@
//= require diff_notes/stores/comments
(() => {
function createDiscussion(noteId = 1, resolved = true) {
- CommentsStore.create('a', noteId, resolved, 'test');
+ CommentsStore.create('a', noteId, true, resolved, 'test');
};
beforeEach(() => {
@@ -91,6 +91,7 @@
it('is unresolved with 2 notes', () => {
const discussion = CommentsStore.state['a'];
createDiscussion(2, false);
+ console.log(discussion.isResolved());
expect(discussion.isResolved()).toBe(false);
});