Skip to content

Commit

Permalink
test(path): Provide process.{env,platform} to getPathVar
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramontina committed Jul 5, 2016
1 parent bcfea36 commit ae2be01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('runner', function describeRunner() {
this.run(process.cwd(), '/pre-push')
const prefixPath = path.resolve(process.cwd(), 'node_modules', '.bin')
const calledOptions = this.spawn.firstCall.args[1]
expect(calledOptions.env[getPathVar()])
expect(calledOptions.env[getPathVar(process.env, process.platform)])
.to.startWith(prefixPath)
})
})
Expand Down

0 comments on commit ae2be01

Please sign in to comment.