@cgj/k-view
Version:
``` npm i @cgj/k-view ```
12 lines (11 loc) • 377 B
JavaScript
import { shallowMount } from '@vue/test-utils';
import HelloWorld from '../index';
describe('<v-hello-world/>', () => {
it('should render correct contents', () => {
const wrapper = shallowMount(HelloWorld);
// expect(wrapper.find('.hello h1').text())
// .toEqual('Hello Jest');
expect(wrapper.find('.hello h1').text())
.toMatchSnapshot();
});
});