File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/@vue/cli/__tests__ Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,19 +76,19 @@ test('invoke with existing files', async () => {
7676 await project . write ( 'package.json' , JSON . stringify ( pkg , null , 2 ) )
7777
7878 // mock existing vue.config.js
79- await project . write ( 'vue.config.js' , `module.exports = { lintOnSave: false }` )
79+ await project . write ( 'vue.config.js' , `module.exports = { lintOnSave: true }` )
8080
8181 const eslintrc = JSON . parse ( await project . read ( '.eslintrc' ) )
8282 expect ( eslintrc ) . toEqual ( {
8383 root : true ,
8484 extends : [ 'plugin:vue/essential' , 'eslint:recommended' ]
8585 } )
8686
87- await project . run ( `${ require . resolve ( '../bin/vue' ) } invoke eslint --config airbnb --lintOn save, commit` )
87+ await project . run ( `${ require . resolve ( '../bin/vue' ) } invoke eslint --config airbnb --lintOn commit` )
8888
8989 await assertUpdates ( project )
9090 const updatedVueConfig = await project . read ( 'vue.config.js' )
91- expect ( updatedVueConfig ) . toMatch ( `module.exports = { lintOnSave: true }` )
91+ expect ( updatedVueConfig ) . toMatch ( `module.exports = { lintOnSave: false }` )
9292} )
9393
9494test ( 'invoke with existing files (yaml)' , async ( ) => {
You can’t perform that action at this time.
0 commit comments