Skip to content

Commit f4c520b

Browse files
committed
test: fix invoke test case
1 parent d7cfa00 commit f4c520b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@vue/cli/__tests__/invoke.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

9494
test('invoke with existing files (yaml)', async () => {

0 commit comments

Comments
 (0)