mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-01-11 22:28:14 +08:00
11 lines
340 B
TypeScript
11 lines
340 B
TypeScript
import { shallowMount } from '@vue/test-utils';
|
|
import HelloWorld from '../../src/components/HelloWorld.vue';
|
|
|
|
describe('HelloWorld.vue', () => {
|
|
it('renders props.msg when passed', () => {
|
|
const msg = 'new message';
|
|
const wrapper = shallowMount(HelloWorld, { props: { msg } });
|
|
expect(wrapper.text()).toMatch(msg);
|
|
});
|
|
});
|