test: fix test-require-symlink on Windows

Creating directory symlinks on Windows require 'dir' parameter to be
provided.

Fixes: https://github.com/nodejs/node/issues/23596

PR-URL: https://github.com/nodejs/node/pull/23691
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Bartosz Sosnowski
2018-10-16 15:54:02 +02:00
committed by Rod Vagg
parent ac91346776
commit e7a573a9e2

View File

@@ -58,7 +58,7 @@ const linkScriptTarget = path.join(dirName, 'symlinked.js');
test();
function test() {
fs.symlinkSync(linkTarget, linkDir);
fs.symlinkSync(linkTarget, linkDir, 'dir');
fs.symlinkSync(linkScriptTarget, linkScript);
// load symlinked-module