Skip to content

Commit

Permalink
Build: fix test failure on Node 11 (#11100)
Browse files Browse the repository at this point in the history
This is a workaround for tschaub/mock-fs#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.
  • Loading branch information
not-an-aardvark authored and aladdin-add committed Nov 19, 2018
1 parent 3025cdd commit 709190f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/lib/util/npm-utils.js
Expand Up @@ -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);
});
});

Expand Down

0 comments on commit 709190f

Please sign in to comment.