Skip to content

Commit

Permalink
Change to use shifter.cwd() instead of process.cwd() for coverage gen…
Browse files Browse the repository at this point in the history
…eration.
  • Loading branch information
Lei Kang committed Mar 19, 2014
1 parent 66e4295 commit 84f5823
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ var buildCoverage = function (mod, name, callback) {
.coverage({
type: coverageType,
charset: 'utf8',
name: path.relative(process.cwd(), filePath)
name: path.relative(shifter.cwd(), filePath)
})
.replace(replaceOptions)
.check()
Expand Down
4 changes: 2 additions & 2 deletions tests/5-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var tests = {
}(file));
});
}));

fs.readdir(path.join(buildXBase, 'yql'), stack.add(function(err, files) {
files.forEach(function(file) {
(function(file) {
Expand All @@ -84,7 +84,7 @@ var tests = {
}(file));
});
}));

stack.done(function() {
self.callback(null, results);
});
Expand Down
8 changes: 4 additions & 4 deletions tests/assets/freestyle/build-expected/foo/foo-coverage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/assets/yql/build-expected/yql/yql-coverage.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tests/assets/yql/build-uglify/calendar/calendar-coverage.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tests/assets/yql/build-uglify/uploader/uploader-coverage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 84f5823

Please sign in to comment.