summaryrefslogtreecommitdiff
path: root/spec/javascripts/diffs
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-07-23 11:24:07 +0000
committerFatih Acet <acetfatih@gmail.com>2018-07-23 11:24:07 +0000
commitb2dbc93694cfd8c7d83c77327096651b5a40d77a (patch)
tree802d86555bdd146457714778d3af01e3fcbe3ef4 /spec/javascripts/diffs
parent58a0df7e68e46902e453a0252e6753517d9cf665 (diff)
downloadgitlab-ce-b2dbc93694cfd8c7d83c77327096651b5a40d77a.tar.gz
Reducing the memory footprint for the rendering
Diffstat (limited to 'spec/javascripts/diffs')
-rw-r--r--spec/javascripts/diffs/components/diff_line_gutter_content_spec.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/javascripts/diffs/components/diff_line_gutter_content_spec.js b/spec/javascripts/diffs/components/diff_line_gutter_content_spec.js
index cb85d12daf2..bdc94131fc2 100644
--- a/spec/javascripts/diffs/components/diff_line_gutter_content_spec.js
+++ b/spec/javascripts/diffs/components/diff_line_gutter_content_spec.js
@@ -50,7 +50,11 @@ describe('DiffLineGutterContent', () => {
it('should return discussions for the given lineCode', () => {
const { lineCode } = getDiffFileMock().highlightedDiffLines[1];
- const component = createComponent({ lineCode, showCommentButton: true });
+ const component = createComponent({
+ lineCode,
+ showCommentButton: true,
+ discussions: getDiscussionsMockData(),
+ });
setDiscussions(component);