Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
ralic committed Oct 24, 2019
1 parent 119bcb5 commit 570d963
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ describe('Codecov', function() {
process.env.codecov_token = 'abc123'
process.env.CODECOV_TOKEN = 'ABC123'
upload = codecov.upload({ options: { dump: true } })
try {
if (process.platform === 'win32') {
expect(upload.query.token).toBe('ABC123')
} catch (e) {
var isWin = process.platform === 'win32' || 'win64'
expect(isWin)
}
} else {
expect(upload.query.token).toBe('abc123')
}}
delete process.env.codecov_token
delete process.env.CODECOV_TOKEN
})
Expand Down

0 comments on commit 570d963

Please sign in to comment.