summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-21 17:22:59 +0000
committerPhil Hughes <me@iamphill.com>2018-12-21 17:22:59 +0000
commite6f1209ebf87c61e36c1efdb304dbf9d32d6cbb9 (patch)
tree87f518469ebd757c8c711350c1002ab1328fd033 /spec/javascripts
parentc20f0564015be67ac7871abbd0a2ed8762484cea (diff)
downloadgitlab-ce-e6f1209ebf87c61e36c1efdb304dbf9d32d6cbb9.tar.gz
Fixes diff sugestions removing dashes from diff
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55634
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/vue_shared/components/markdown/suggestions_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/vue_shared/components/markdown/suggestions_spec.js b/spec/javascripts/vue_shared/components/markdown/suggestions_spec.js
index ab1b747c360..423cd6dee0f 100644
--- a/spec/javascripts/vue_shared/components/markdown/suggestions_spec.js
+++ b/spec/javascripts/vue_shared/components/markdown/suggestions_spec.js
@@ -29,7 +29,7 @@ const generateLine = content => {
const generateMockLines = () => {
const line1 = generateLine('Line 1');
const line2 = generateLine('Line 2');
- const line3 = generateLine('Line 3');
+ const line3 = generateLine('- Line 3');
const container = document.createElement('div');
container.appendChild(line1);
@@ -80,7 +80,7 @@ describe('Suggestion component', () => {
const expectedReturn = [
{ content: 'Line 1\n', lineNumber: 1 },
{ content: 'Line 2\n', lineNumber: 2 },
- { content: 'Line 3\n', lineNumber: 3 },
+ { content: '- Line 3\n', lineNumber: 3 },
];
expect(vm.extractNewLines(generateMockLines())).toEqual(expectedReturn);