diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-10 11:54:07 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-18 14:34:07 +0100 |
commit | 6d1467de8697a08aa51745043ac4a0b967ad3d24 (patch) | |
tree | 2ac5ff22a31716f3dbfc33edf35b79d44d2d6e4d /spec | |
parent | be45d454046b7f58c2b586923f5819b9bec95aa5 (diff) | |
download | gitlab-ce-6d1467de8697a08aa51745043ac4a0b967ad3d24.tar.gz |
fixed modal_spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/ide/components/new_dropdown/modal_spec.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/spec/javascripts/ide/components/new_dropdown/modal_spec.js b/spec/javascripts/ide/components/new_dropdown/modal_spec.js index a6e1e5a0d35..f362ed4db65 100644 --- a/spec/javascripts/ide/components/new_dropdown/modal_spec.js +++ b/spec/javascripts/ide/components/new_dropdown/modal_spec.js @@ -25,25 +25,17 @@ describe('new file modal component', () => { it(`sets modal title as ${type}`, () => { const title = type === 'tree' ? 'directory' : 'file'; - expect(vm.$el.querySelector('.modal-title').textContent.trim()).toBe( - `Create new ${title}`, - ); + expect(vm.$el.querySelector('.modal-title').textContent.trim()).toBe(`Create new ${title}`); }); it(`sets button label as ${type}`, () => { const title = type === 'tree' ? 'directory' : 'file'; - expect(vm.$el.querySelector('.btn-success').textContent.trim()).toBe( - `Create ${title}`, - ); + expect(vm.$el.querySelector('.btn-success').textContent.trim()).toBe(`Create ${title}`); }); it(`sets form label as ${type}`, () => { - const title = type === 'tree' ? 'Directory' : 'File'; - - expect(vm.$el.querySelector('.label-light').textContent.trim()).toBe( - `${title} name`, - ); + expect(vm.$el.querySelector('.label-light').textContent.trim()).toBe('Name'); }); describe('createEntryInStore', () => { |