2020-10-24 23:57:45 +05:30
|
|
|
import { GlButton } from '@gitlab/ui';
|
2021-03-11 19:13:27 +05:30
|
|
|
import { shallowMount } from '@vue/test-utils';
|
2020-10-24 23:57:45 +05:30
|
|
|
|
|
|
|
import RemoveIssue from '~/boards/components/sidebar/remove_issue.vue';
|
|
|
|
|
|
|
|
describe('boards sidebar remove issue', () => {
|
|
|
|
let wrapper;
|
|
|
|
|
|
|
|
const findButton = () => wrapper.find(GlButton);
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
const createComponent = (propsData) => {
|
2020-10-24 23:57:45 +05:30
|
|
|
wrapper = shallowMount(RemoveIssue, {
|
|
|
|
propsData: {
|
|
|
|
issue: {},
|
|
|
|
list: {},
|
|
|
|
...propsData,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
createComponent();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('renders remove button', () => {
|
|
|
|
expect(findButton().exists()).toBe(true);
|
|
|
|
});
|
|
|
|
});
|