mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-07 16:35:15 +08:00
feat: add monorepo
This commit is contained in:
10
packages/plugin-ui/tests/unit/example.spec.ts
Normal file
10
packages/plugin-ui/tests/unit/example.spec.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user