8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac1a48 commit 17b10b9Copy full SHA for 17b10b9
test/mkdir.js
@@ -108,12 +108,13 @@ test('name too long', t => {
108
// major OS's share approximately the same limit (we bump this up to 260 to
109
// be cautious).
110
const longName = new Array(260 + 1).join('a');
111
+ const dirName = `${t.context.tmp}/${longName}`;
112
- const result = shell.mkdir(longName);
113
+ const result = shell.mkdir(dirName);
114
t.truthy(shell.error());
115
t.is(result.code, 1);
116
t.is(result.stderr,
- `mkdir: cannot create directory '${longName}': File name too long`);
117
+ `mkdir: cannot create directory '${dirName}': File name too long`);
118
t.falsy(fs.existsSync(longName));
119
});
120
0 commit comments