diff options
| author | Phil Hughes <me@iamphill.com> | 2018-03-07 09:47:16 +0000 |
|---|---|---|
| committer | Phil Hughes <me@iamphill.com> | 2018-03-07 09:47:16 +0000 |
| commit | cfe203fa3a77adbb33f877c98af5e117b1ccd281 (patch) | |
| tree | 6c1b80efef66ae0c880e31bf6e6404336f03ecd8 /spec/javascripts | |
| parent | 9ecfb287fe7b67f1a917677b1af8df0b268912bf (diff) | |
| parent | 51b887414866490f7410e2514c5fe338451fa988 (diff) | |
| download | gitlab-ce-cfe203fa3a77adbb33f877c98af5e117b1ccd281.tar.gz | |
Merge branch '43502-clipboard-btn' into 'master'
Resolve "Update clipboard button component not to render default css classes"
Closes #43502
See merge request gitlab-org/gitlab-ce!17529
Diffstat (limited to 'spec/javascripts')
| -rw-r--r-- | spec/javascripts/vue_shared/components/clipboard_button_spec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/vue_shared/components/clipboard_button_spec.js b/spec/javascripts/vue_shared/components/clipboard_button_spec.js index d0fc10d69ea..f598b1afa74 100644 --- a/spec/javascripts/vue_shared/components/clipboard_button_spec.js +++ b/spec/javascripts/vue_shared/components/clipboard_button_spec.js @@ -10,6 +10,7 @@ describe('clipboard button', () => { vm = mountComponent(Component, { text: 'copy me', title: 'Copy this value into Clipboard!', + cssClass: 'btn-danger', }); }); @@ -28,4 +29,8 @@ describe('clipboard button', () => { expect(vm.$el.getAttribute('data-placement')).toEqual('top'); expect(vm.$el.getAttribute('data-container')).toEqual(null); }); + + it('should render provided classname', () => { + expect(vm.$el.classList).toContain('btn-danger'); + }); }); |
