8000 move dir into temp dir · shelljs/shelljs@17b10b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17b10b9

Browse files
committed 8000
move dir into temp dir
1 parent dac1a48 commit 17b10b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/mkdir.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,13 @@ test('name too long', t => {
108108
// major OS's share approximately the same limit (we bump this up to 260 to
109109
// be cautious).
110110
const longName = new Array(260 + 1).join('a');
111+
const dirName = `${t.context.tmp}/${longName}`;
111112

112-
const result = shell.mkdir(longName);
113+
const result = shell.mkdir(dirName);
113114
t.truthy(shell.error());
114115
t.is(result.code, 1);
115116
t.is(result.stderr,
116-
`mkdir: cannot create directory '${longName}': File name too long`);
117+
`mkdir: cannot create directory '${dirName}': File name too long`);
117118
t.falsy(fs.existsSync(longName));
118119
});
119120

0 commit comments

Comments
 (0)
0