File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.0.0" ,
44 "description" : " Create Vue app with no build configurations" ,
55 "scripts" : {
6- "test" : " npm run lint && ava" ,
6+ "test" : " npm run lint && npm run ava" ,
77 "ava" : " ava test/test.js" ,
88 "lint" : " xo"
99 },
Original file line number Diff line number Diff line change 11import Vue from 'vue'
22import App from './App.vue'
3- import assert from 'assert'
3+
4+ Vue . config . productionTip = false
45
56it ( 'does not crash' , ( ) => {
67 const Ctor = Vue . extend ( App )
78 const vm = new Ctor ( ) . $mount ( )
8- assert ( / W e l c o m e t o V u e \. j s / . test ( vm . $el . textContent ) )
9+ expect ( vm . $el . textContent ) . toMatch ( / W e l c o m e t o V u e \. j s / )
910} )
Original file line number Diff line number Diff line change 11import Vue from 'vue'
22import App from './components/App.vue'
33
4+ Vue . config . productionTip = false
5+
46new Vue ( {
57 el : '#app' ,
68 render : h => h ( App )
You can’t perform that action at this time.
0 commit comments