diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-01-07 11:55:43 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-01-07 11:55:43 +0300 |
commit | 32f80629bdbd4d2fcd43b6220da373394ffd95b6 (patch) | |
tree | f83078f5ef1f8edc34b3d41fccfe2e99a862f0d8 /spec/javascripts | |
parent | 855df0ceaaee3e6ff75a4a21d838588086e1a3a9 (diff) | |
parent | e6f1209ebf87c61e36c1efdb304dbf9d32d6cbb9 (diff) |
Merge branch 'suggestion-dashes' into 'master'
Fixes diff sugestions removing dashes from diff
Closes #55634
See merge request gitlab-org/gitlab-ce!23994
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/vue_shared/components/markdown/suggestions_spec.js | 4 |
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); |