Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@pm.me>2020-03-18 11:27:43 +0300
committerMarco Ambrosini <marcoambrosini@pm.me>2020-03-18 11:29:42 +0300
commit35fc161be7f51219c6f6ba5c0ebe4825159ae584 (patch)
tree3d2ac1b44f658e4eea03fd0de08012811a4c0586 /tests
parent4c61194fdbd53c7741950c8fccfdab2ba2e649b3 (diff)
Install jest
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/example.spec.js12
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)
+ })
+})