Skip to content

Commit d0a4adc

Browse files
committed
[INTERNAL] Fix tests on Node 16
TypeError message differs, so it should not be checked.
1 parent 355c1da commit d0a4adc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/lib/Compiler.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ describe("Compiler#createFileHandler", function() {
3535
assert.equal(callback.callCount, 1);
3636
assert.equal(callback.getCall(0).args.length, 1);
3737
assert.equal(callback.getCall(0).args[0].name, "TypeError");
38-
assert.equal(callback.getCall(0).args[0].message,
39-
`Cannot read property 'readFile' of undefined`
40-
);
4138
});
4239
it("should propagate errors via callback function (File not found)", async function() {
4340
const compiler = new Compiler({

0 commit comments

Comments
 (0)