Skip to content

Commit 504a227

Browse files
committed
fix vtest prefix
1 parent 2244d0e commit 504a227

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

snippets/vue-script.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,17 +281,17 @@
281281
"Unit Test": {
282282
"prefix": "vtest",
283283
"body": [
284-
"import Vue from 'vue'",
285-
"import ${1:HelloWorld} from './components/${1:HelloWorld}'",
284+
"import Vue from 'vue';",
285+
"import ${1:HelloWorld} from './components/${1:HelloWorld}';",
286286
"",
287287
"describe('${1:HelloWorld}.vue', () => {",
288288
"\tit('${2:should render correct contents}', () => {",
289-
"\t\tconst Constructor = Vue.extend(${1:HelloWorld})",
290-
"\t\tconst vm = new Constructor().$mount()",
289+
"\t\tconst Constructor = Vue.extend(${1:HelloWorld});",
290+
"\t\tconst vm = new Constructor().$mount();",
291291
"\t\texpect(vm.$el.querySelector('.hello h1').textContent)",
292-
"\t\t\t.to.equal(${3:'Welcome to Your Vue.js App'})",
293-
"\t})",
294-
"})"
292+
"\t\t\t.to.equal(${3:'Welcome to Your Vue.js App'});",
293+
"\t});",
294+
"});"
295295
],
296296
"description": "unit test component"
297297
},

0 commit comments

Comments
 (0)