From ea05ebc41b0395bb6d225c21613c82be97cd8e3c Mon Sep 17 00:00:00 2001 From: ZYSzys Date: Sat, 7 Dec 2019 22:51:56 +0800 Subject: [PATCH] fixup! --- test/parallel/test-require-resolve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-require-resolve.js b/test/parallel/test-require-resolve.js index c03927a9bca428..484263c226f4a3 100644 --- a/test/parallel/test-require-resolve.js +++ b/test/parallel/test-require-resolve.js @@ -65,7 +65,7 @@ const re = /^The "request" argument must be of type string\. Received type \w+$/ // node_modules. const resolvedPaths = require.resolve.paths('eslint'); assert.strictEqual(Array.isArray(resolvedPaths), true); - assert.strictEqual(resolvedPaths.includes('/node_modules'), true); + assert.strictEqual(resolvedPaths[0].includes('node_modules'), true); // relativeModules. const relativeModules = ['.', '..', './foo', '../bar'];