From 709190f8c5d7559b1e0915e25af60b50a94ba1c7 Mon Sep 17 00:00:00 2001 From: Teddy Katz Date: Mon, 19 Nov 2018 08:51:14 -0500 Subject: [PATCH] Build: fix test failure on Node 11 (#11100) This is a workaround for https://github.com/tschaub/mock-fs/issues/256. It seems like we might eventually need to find an alternative to mock-fs for future Node versions, but this workaround should make the build pass in the meantime. --- tests/lib/util/npm-utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/lib/util/npm-utils.js b/tests/lib/util/npm-utils.js index 1b07f37153f..4c615abc61f 100644 --- a/tests/lib/util/npm-utils.js +++ b/tests/lib/util/npm-utils.js @@ -162,8 +162,7 @@ describe("npmUtils", () => { }); it("should return false if package.json does not exist", () => { - mockFs({}); - assert.strictEqual(npmUtils.checkPackageJson(), false); + assert.strictEqual(npmUtils.checkPackageJson("/"), false); }); });