1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-01-11 14:18:26 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
chrome-extension/packages/plugin-ui/tests/unit/example.spec.ts

11 lines
340 B
TypeScript
Raw Normal View History

2022-01-26 18:46:54 +08:00
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);
});
});