Skip to content

Commit

Permalink
fix(index): remove original specs from protractorArgs to prevent doub…
Browse files Browse the repository at this point in the history
…le specs
  • Loading branch information
Wim Selles committed Sep 8, 2016
1 parent aa46ade commit 3cda7c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export default function (options = {}, callback = function noop () {}) {

if (specFiles.length) {
protractorArgs = protractorArgs.filter((arg) => !/^--suite=/.test(arg))
var specIndex = protractorArgs.indexOf('--specs')
if (specIndex > -1) {
protractorArgs.splice(specIndex, 2)
}
protractorArgs.push('--specs', specFiles.join(','))
}

Expand Down

0 comments on commit 3cda7c9

Please sign in to comment.