From cdd2e46ab26c76dc66cebed95637925bb4480b8e Mon Sep 17 00:00:00 2001 From: Teddy Katz Date: Sun, 18 Nov 2018 17:59:20 -0500 Subject: [PATCH] Build: fix test failure on Node 11 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); }); });