Skip to content

Commit

Permalink
test: small refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Sep 29, 2021
1 parent 099ba93 commit 9b25d91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ test(`should use formatter 'codeframe'`, async () => {
const updatedMain = main.replace(/;/g, '')
await write('src/main.js', updatedMain)

const server = run('vue-cli-service serve --stdin')
const server = run('vue-cli-service serve')

let isFirstMsg = true
server.stdout.on('data', data => {
Expand Down Expand Up @@ -282,7 +282,7 @@ test(`should work with eslint v8`, async () => {
}
})
const { read, write, run } = project
await run('npm i -D eslint@^8.0.0-0 eslint-formatter-codeframe')
await run('yarn add -D eslint@^8.0.0-0 eslint-formatter-codeframe')
// should've applied airbnb autofix
const main = await read('src/main.js')
expect(main).toMatch(';')
Expand Down

0 comments on commit 9b25d91

Please sign in to comment.