blob: eee8a0c453202425e91468a2fce50f979d9b53e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { shallowMount } from '@vue/test-utils';
import FormFooterActions from '~/vue_shared/components/form/form_footer_actions.vue';
describe('Form Footer Actions', () => {
let wrapper;
function createComponent(slots = {}) {
wrapper = shallowMount(FormFooterActions, {
slots,
});
}
it('renders content properly', () => {
const defaultSlot = 'Foo';
const prepend = 'Bar';
const append = 'Abrakadabra';
createComponent({
default: defaultSlot,
prepend,
append,
});
expect(wrapper.element).toMatchSnapshot();
});
});
|