debian-mirror-gitlab/spec/frontend/environments/enable_review_app_modal_spec.js

26 lines
662 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
import { shallowMount } from '@vue/test-utils';
2020-03-09 13:42:32 +05:30
import ModalCopyButton from '~/vue_shared/components/modal_copy_button.vue';
2021-01-03 14:25:43 +05:30
import EnableReviewAppButton from '~/environments/components/enable_review_app_modal.vue';
2020-03-09 13:42:32 +05:30
describe('Enable Review App Button', () => {
let wrapper;
afterEach(() => {
wrapper.destroy();
});
describe('renders the modal', () => {
beforeEach(() => {
2021-01-03 14:25:43 +05:30
wrapper = shallowMount(EnableReviewAppButton, {
propsData: {
modalId: 'fake-id',
},
});
2020-03-09 13:42:32 +05:30
});
it('renders the copyToClipboard button', () => {
expect(wrapper.find(ModalCopyButton).exists()).toBe(true);
});
});
});