diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-04-03 19:24:43 +0200 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-04-03 19:24:43 +0200 |
commit | 534b610cdb92bcf1dc8b56a53529eda75eef9213 (patch) | |
tree | 2d852a06ee4366b162787ad59e66e7e61b7d26a0 | |
parent | 3369042ee5da639d09e6aab0281d6e9ce4158528 (diff) | |
download | gitlab-ce-534b610cdb92bcf1dc8b56a53529eda75eef9213.tar.gz |
Copy todo_spec.js from EEwinh-sidebar-todo
-rw-r--r-- | spec/javascripts/sidebar/todo_spec.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/javascripts/sidebar/todo_spec.js b/spec/javascripts/sidebar/todo_spec.js index 657e88ecb96..f46ea5a0499 100644 --- a/spec/javascripts/sidebar/todo_spec.js +++ b/spec/javascripts/sidebar/todo_spec.js @@ -116,7 +116,7 @@ describe('SidebarTodo', () => { const dataAttributes = { issuableId: '1', issuableType: 'epic', - originalTitle: 'Mark todo as done', + originalTitle: '', placement: 'left', container: 'body', boundary: 'viewport', @@ -130,6 +130,10 @@ describe('SidebarTodo', () => { }); }); + it('check button label computed property', () => { + expect(vm.buttonLabel).toEqual('Mark todo as done'); + }); + it('renders button label element when `collapsed` prop is `false`', () => { const buttonLabelEl = vm.$el.querySelector('span.issuable-todo-inner'); |