Skip to content

Commit

Permalink
chore: handle Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 23, 2019
1 parent 40db7fc commit e0fa89f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parse-args.js
Expand Up @@ -6,6 +6,8 @@ const {
hideInstrumenterArgs
} = require('../lib/parse-args')

const { join } = require('path')

describe('parse-args', () => {
describe('hideInstrumenteeArgs', () => {
it('hides arguments passed to instrumented app', () => {
Expand All @@ -31,7 +33,7 @@ describe('parse-args', () => {
process.env.NODE_V8_COVERAGE = './coverage/tmp_'
process.argv = ['node', 'c8', '--foo=99', 'my-app', '--help']
const argv = buildYargs().parse(hideInstrumenteeArgs())
argv.tempDirectory.endsWith('/coverage/tmp_').should.be.equal(true)
argv.tempDirectory.endsWith(join('coverage', 'tmp_')).should.be.equal(true)
process.env.NODE_V8_COVERAGE = NODE_V8_COVERAGE
})
})
Expand Down

0 comments on commit e0fa89f

Please sign in to comment.