mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
23 lines
457 B
TypeScript
23 lines
457 B
TypeScript
import { test, expect } from 'vitest';
|
|
import { mount } from '@vue/test-utils';
|
|
|
|
import VTabs from './v-tabs.vue';
|
|
import { GlobalMountOptions } from '@vue/test-utils/dist/types';
|
|
|
|
const global: GlobalMountOptions = {
|
|
stubs: ['v-tabs-items', 'v-list'],
|
|
};
|
|
|
|
test('Mount component', () => {
|
|
expect(VTabs).toBeTruthy();
|
|
|
|
const wrapper = mount(VTabs, {
|
|
slots: {
|
|
default: 'Some value',
|
|
},
|
|
global,
|
|
});
|
|
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|