Skip to content

Commit

Permalink
workflow: fix test script -p flag
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 2, 2018
1 parent c7e28fd commit db175bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let regex
if (args.p) {
const packages = (args.p || args.package).split(',').join('|')
regex = `.*@vue/(${packages}|cli-plugin-(${packages}))/.*\\.spec\\.js$`
const i = rawArgs.findIndex('-p')
const i = rawArgs.indexOf('-p')
rawArgs.splice(i, 2)
}

Expand Down

0 comments on commit db175bb

Please sign in to comment.