Skip to content

Commit efa2631

Browse files
committed
test: Add tests cases for DpInstance component
1 parent 9e03dc0 commit efa2631

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { describe, expect, it } from 'vitest';
2+
import { mount } from '@vue/test-utils';
3+
import { DpInstance } from '@packages/components/DpInstance';
4+
5+
// Logic in this component is covered by other tests
6+
describe('DpInstance', () => {
7+
it('Should render component', () => {
8+
const wrapper = mount(DpInstance);
9+
10+
expect(wrapper.html()).toContain('<div>');
11+
});
12+
13+
it('Should render component as custom HTML tag', () => {
14+
const wrapper = mount(DpInstance, { props: { as: 'section' } });
15+
16+
expect(wrapper.html()).toContain('<section>');
17+
});
18+
});

0 commit comments

Comments
 (0)