From 1de67c71fb410215ba189fe9a5dab60555562cc5 Mon Sep 17 00:00:00 2001 From: Masashi Hirano Date: Fri, 4 May 2018 13:44:16 +0900 Subject: [PATCH] test: fix common.canCreateSymLink() on non-Windows test/common/README.md indicates that canCreateSymlink() always returns true on non-Windows platforms. However, prior to this commit, undefined was being returned. This commit aligns the implementation with the docs by returning true. PR-URL: https://github.com/nodejs/node/pull/20511 Reviewed-By: Luigi Pinca Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater --- test/common/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common/index.js b/test/common/index.js index bbd2b62d7da768..ea77c963aa9af0 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -518,6 +518,8 @@ exports.canCreateSymLink = function() { return false; } } + // On non-Windows platforms, this always returns `true` + return true; }; exports.getCallSite = function getCallSite(top) {