fine-true
Version:
A small and beautiful Vue3 version of the UI Library
23 lines (20 loc) • 477 B
JavaScript
import { mount } from '@vue/test-utils';
import Drawer from './index';
test('slot default', () => {
const wrapper = mount(Drawer, {
props: {
title: 'drawer',
modelValue: true,
},
});
expect(wrapper.text()).toContain('drawer');
});
test('has text', () => {
const wrapper = mount(Drawer, {
props: {
title: 'drawer',
modelValue: false,
},
});
expect(wrapper.html()).toContain('class="fine-drawer"');
});