Skip to content

Commit

Permalink
fix(test): extracted path.sep is always /
Browse files Browse the repository at this point in the history
  • Loading branch information
watilde committed Jul 29, 2017
1 parent fadfa86 commit ca748d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/resolver/fetchers/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = (name, spec, result) => {
const extract = tar.extract()
var data = ''
extract.on('entry', function (header, stream, cb) {
const file = header.name.split(path.sep).pop()
const file = header.name.split('/').pop()
stream.on('data', function (chunk) {
if (file === 'package.json') data += chunk
})
Expand Down

0 comments on commit ca748d3

Please sign in to comment.