We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e03dc0 commit efa2631Copy full SHA for efa2631
src/packages/components/DpInstance/__tests__/DpInstance.spec.ts
@@ -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