8000 try to join paths differently in test · shelljs/shelljs@03d08f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03d08f3

Browse files
committed
try to join paths differently in test
8000
1 parent 17b10b9 commit 03d08f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/mkdir.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import fs from 'fs';
2+
import path from 'path';
23

34
import test from 'ava';
45

@@ -108,7 +109,7 @@ test('name too long', t => {
108109
// major OS's share approximately the same limit (we bump this up to 260 to
109110
// be cautious).
110111
const longName = new Array(260 + 1).join('a');
111-
const dirName = `${t.context.tmp}/${longName}`;
112+
const dirName = path.join(t.context.tmp, longName);
112113

113114
const result = shell.mkdir(dirName);
114115
t.truthy(shell.error());

0 commit comments

Comments
 (0)
0