mirror of
https://github.com/directus/directus.git
synced 2026-02-08 12:35:11 -05:00
31 lines
640 B
TypeScript
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);
|
|
}
|
|
});
|