Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 7f12f07

Browse files
committed
test: that CReset should render
1 parent a0ac067 commit 7f12f07

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import CReset from '../'
2+
import { render, defaultProviders } from '@/tests/test-utils'
3+
4+
const renderComponent = (options = {}) => {
5+
return render(
6+
CReset,
7+
options,
8+
() => ({ provide: defaultProviders() })
9+
)
10+
}
11+
12+
describe('CReset.vue', () => {
13+
14+
it('should render correctly', () => {
15+
const { asFragment } = renderComponent()
16+
17+
expect(asFragment()).toMatchSnapshot()
18+
})
19+
20+
})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`CReset.vue should render correctly 1`] = `
4+
<DocumentFragment>
5+
<!---->
6+
</DocumentFragment>
7+
`;

0 commit comments

Comments
 (0)