File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.0" ,
4
4
"description" : " Create Vue app with no build configurations" ,
5
5
"scripts" : {
6
- "test" : " npm run lint && ava" ,
6
+ "test" : " npm run lint && npm run ava" ,
7
7
"ava" : " ava test/test.js" ,
8
8
"lint" : " xo"
9
9
},
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
2
import App from './App.vue'
3
- import assert from 'assert'
3
+
4
+ Vue . config . productionTip = false
4
5
5
6
it ( 'does not crash' , ( ) => {
6
7
const Ctor = Vue . extend ( App )
7
8
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 / )
9
10
} )
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
2
import App from './components/App.vue'
3
3
4
+ Vue . config . productionTip = false
5
+
4
6
new Vue ( {
5
7
el : '#app' ,
6
8
render : h => h ( App )
You can’t perform that action at this time.
0 commit comments