blob: 30e16bd12da9e41313d892831b7fd1f46b53ac44 (
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
26
27
28
29
|
import FormFooterActions from '~/vue_shared/components/form/form_footer_actions.vue';
import { shallowMount } from '@vue/test-utils';
describe('Form Footer Actions', () => {
let wrapper;
function createComponent(slots = {}) {
wrapper = shallowMount(FormFooterActions, {
slots,
});
}
afterEach(() => {
wrapper.destroy();
});
it('renders content properly', () => {
const defaultSlot = 'Foo';
const prepend = 'Bar';
const append = 'Abrakadabra';
createComponent({
default: defaultSlot,
prepend,
append,
});
expect(wrapper.element).toMatchSnapshot();
});
});
|