All files / app/assets/javascripts/vue_shared/components/sidebar/todo_toggle todo_button.stories.js

0% Statements 0/4
100% Branches 0/0
0% Functions 0/1
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                                               
/* eslint-disable @gitlab/require-i18n-strings */
 
import TodoButton from './todo_button.vue';
 
export default {
  component: TodoButton,
  title: 'vue_shared/components/sidebar/todo_toggle/todo_button',
};
 
const Template = (args, { argTypes }) => ({
  components: { TodoButton },
  props: Object.keys(argTypes),
  template: '<todo-button v-bind="$props" v-on="$props" />',
});
 
export const Default = Template.bind({});
Default.argTypes = {
  isTodo: {
    description: 'True if to-do is unresolved (i.e. not "done")',
    control: { type: 'boolean' },
  },
  click: { action: 'clicked' },
};