diff options
author | Natalia Tepluhina <ntepluhina@gitlab.com> | 2019-07-09 04:22:48 +0000 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-07-09 04:22:48 +0000 |
commit | 9613a34a24bda78661ce74348ceb55d1e3b50b53 (patch) | |
tree | a19d31bb8c5c1266bf0b66e96cc4ee72817bd007 /spec/javascripts | |
parent | 56e3fc40b80b8f2231f15d57c73d3f5995f01eca (diff) | |
download | gitlab-ce-9613a34a24bda78661ce74348ceb55d1e3b50b53.tar.gz |
Fixed editing form
- applied functional component patch
- fixed border radius for list
- fixed Karma test to take a correct li amount
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/diffs/components/inline_diff_view_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/diffs/components/inline_diff_view_spec.js b/spec/javascripts/diffs/components/inline_diff_view_spec.js index 0b3890b68d6..9b61dbe7975 100644 --- a/spec/javascripts/diffs/components/inline_diff_view_spec.js +++ b/spec/javascripts/diffs/components/inline_diff_view_spec.js @@ -10,6 +10,7 @@ describe('InlineDiffView', () => { let component; const getDiffFileMock = () => Object.assign({}, diffFileMockData); const getDiscussionsMockData = () => [Object.assign({}, discussionsMockData)]; + const notesLength = getDiscussionsMockData()[0].notes.length; beforeEach(done => { const diffFile = getDiffFileMock(); @@ -40,7 +41,7 @@ describe('InlineDiffView', () => { Vue.nextTick(() => { expect(el.querySelectorAll('.notes_holder').length).toEqual(1); - expect(el.querySelectorAll('.notes_holder .note-discussion li').length).toEqual(6); + expect(el.querySelectorAll('.notes_holder .note').length).toEqual(notesLength + 1); expect(el.innerText.indexOf('comment 5')).toBeGreaterThan(-1); component.$store.dispatch('setInitialNotes', []); |