mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
3b66a8d893
commit
dfecf85ded
1 file changed
+1
-1
@@ -60,7 +60,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
|
||||
|
||||
Reference in new issue
Block a user