summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-04-03 19:24:43 +0200
committerWinnie Hellmann <winnie@gitlab.com>2019-04-03 19:24:43 +0200
commit534b610cdb92bcf1dc8b56a53529eda75eef9213 (patch)
tree2d852a06ee4366b162787ad59e66e7e61b7d26a0
parent3369042ee5da639d09e6aab0281d6e9ce4158528 (diff)
downloadgitlab-ce-534b610cdb92bcf1dc8b56a53529eda75eef9213.tar.gz
Copy todo_spec.js from EEwinh-sidebar-todo
-rw-r--r--spec/javascripts/sidebar/todo_spec.js6
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');