Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test/bare.js: nits
  • Loading branch information
Oleksandr-Kushchak-i2 committed Feb 22, 2018
1 parent 680d0e6 commit 1ab192c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bare.js
Expand Up @@ -106,7 +106,7 @@ test('bare inserts __filename,__dirname but not process,global,Buffer', function
test('bare inserts dynamic __filename,__dirname', function (t) {
t.plan(2);

var file = 'dirname-filename.js';
var file = path.join(tmpdir, 'dirname-filename.js');

fs.writeFileSync(
file,
Expand All @@ -122,7 +122,7 @@ test('bare inserts dynamic __filename,__dirname', function (t) {
ps.stdout.pipe(concat(function (body) {
vm.runInNewContext(body, {
require: require,
__dirname: path.dirname(file),
__dirname: process.cwd(),
console: {
log: function (msg) {
t.same(msg, [
Expand Down

0 comments on commit 1ab192c

Please sign in to comment.