diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-13 18:08:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-13 18:08:52 +0300 |
commit | 0ab47b994caa80c5587f33dc818626b66cfdafe2 (patch) | |
tree | 5ef3976d2f84e3368903a67ba2dbd87a74b9a43c /spec/javascripts/diffs | |
parent | 1308dc5eb484ab0f8064989fc551ebdb4b1a7976 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/diffs')
-rw-r--r-- | spec/javascripts/diffs/components/diff_table_cell_spec.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/javascripts/diffs/components/diff_table_cell_spec.js b/spec/javascripts/diffs/components/diff_table_cell_spec.js deleted file mode 100644 index f91e3b56805..00000000000 --- a/spec/javascripts/diffs/components/diff_table_cell_spec.js +++ /dev/null @@ -1,37 +0,0 @@ -import Vue from 'vue'; -import { createComponentWithStore } from 'spec/helpers/vue_mount_component_helper'; -import { createStore } from '~/mr_notes/stores'; -import DiffTableCell from '~/diffs/components/diff_table_cell.vue'; -import diffFileMockData from '../mock_data/diff_file'; - -describe('DiffTableCell', () => { - const createComponent = options => - createComponentWithStore(Vue.extend(DiffTableCell), createStore(), { - line: diffFileMockData.highlighted_diff_lines[0], - fileHash: diffFileMockData.file_hash, - contextLinesPath: 'contextLinesPath', - ...options, - }).$mount(); - - it('does not highlight row when isHighlighted prop is false', done => { - const vm = createComponent({ isHighlighted: false }); - - vm.$nextTick() - .then(() => { - expect(vm.$el.classList).not.toContain('hll'); - }) - .then(done) - .catch(done.fail); - }); - - it('highlights row when isHighlighted prop is true', done => { - const vm = createComponent({ isHighlighted: true }); - - vm.$nextTick() - .then(() => { - expect(vm.$el.classList).toContain('hll'); - }) - .then(done) - .catch(done.fail); - }); -}); |