diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-18 11:27:43 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-18 11:29:42 +0300 |
commit | 35fc161be7f51219c6f6ba5c0ebe4825159ae584 (patch) | |
tree | 3d2ac1b44f658e4eea03fd0de08012811a4c0586 /tests | |
parent | 4c61194fdbd53c7741950c8fccfdab2ba2e649b3 (diff) |
Install jest
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/example.spec.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/example.spec.js b/tests/unit/example.spec.js new file mode 100644 index 000000000..f84fb39dc --- /dev/null +++ b/tests/unit/example.spec.js @@ -0,0 +1,12 @@ +import { shallowMount } from '@vue/test-utils' +import HelloWorld from '@/components/HelloWorld.vue' + +describe('HelloWorld.vue', () => { + it('renders props.msg when passed', () => { + const msg = 'new message' + const wrapper = shallowMount(HelloWorld, { + propsData: { msg } + }) + expect(wrapper.text()).toMatch(msg) + }) +}) |