Skip to content

Commit 1155724

Browse files
committed
use path.join instead of concat in tests, fixes #1
1 parent b4984e3 commit 1155724

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/dir-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ vows.describe('Directory creation').addBatch({
5555

5656
'when using template': {
5757
topic: function () {
58-
tmp.dir({ template: tmp.tmpdir.concat('clike-XXXXXX-postfix') }, this.callback);
58+
tmp.dir({ template: path.join(tmp.tmpdir, 'clike-XXXXXX-postfix') }, this.callback);
5959
},
6060

6161
'should not return with error': assert.isNull,

test/file-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ vows.describe('File creation').addBatch({
6666

6767
'when using template': {
6868
topic: function () {
69-
tmp.file({ template: tmp.tmpdir.concat('clike-XXXXXX-postfix') }, this.callback);
69+
tmp.file({ template: path.join(tmp.tmpdir, 'clike-XXXXXX-postfix') }, this.callback);
7070
},
7171

7272
'should not return with error': assert.isNull,

0 commit comments

Comments
 (0)