From 83e7d9b7d16c6378256e707e698e5e410841d5de Mon Sep 17 00:00:00 2001
From: chen_xi <276999030@qq.com>
Date: Mon, 30 May 2022 10:37:13 +0800
Subject: [PATCH] cx20220530
---
test/unit/specs/HelloWorld.spec.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/test/unit/specs/HelloWorld.spec.js b/test/unit/specs/HelloWorld.spec.js
new file mode 100644
index 0000000..cfb0453
--- /dev/null
+++ b/test/unit/specs/HelloWorld.spec.js
@@ -0,0 +1,11 @@
+import Vue from 'vue'
+import HelloWorld from '@/components/HelloWorld'
+
+describe('HelloWorld.vue', () => {
+ it('should render correct contents', () => {
+ const Constructor = Vue.extend(HelloWorld)
+ const vm = new Constructor().$mount()
+ expect(vm.$el.querySelector('.hello h1').textContent)
+ .toEqual('Welcome to Your Vue.js App')
+ })
+})
--
Gitblit v1.8.0