Files
directus/app/src/components/v-progress-linear.test.ts
Rijk van Zanten 4eae2de686 Move updated components to app (#15374)
* Move updated components to app

* Make sure storybook is alive
2022-09-02 14:42:00 -04:00

31 lines
640 B
TypeScript

import { test, expect } from 'vitest';
import { mount } from '@vue/test-utils';
import VProgressLinear from './v-progress-linear.vue';
test('Mount component', () => {
expect(VProgressLinear).toBeTruthy();
const wrapper = mount(VProgressLinear, {
slots: {
default: 'Slot Content',
},
});
expect(wrapper.html()).toMatchSnapshot();
});
test('style props', () => {
const props = ['absolute', 'bottom', 'fixed', 'indeterminate', 'rounded', 'top', 'colorful'];
for (const prop of props) {
const wrapper = mount(VProgressLinear, {
props: {
[prop]: true,
},
});
expect(wrapper.classes()).toContain(prop);
}
});