Skip to content

Commit a703e63

Browse files
committed
Fix unit test failure in Node 13 and later
See nodejs/node#28979
1 parent 386128c commit a703e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/change.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe("lib/change.js", function () {
9292
write: (ch, enc, cb) => cb(new Error("oops!")),
9393
});
9494
const obj = new Change("foo", out, () => {}, () => {});
95-
obj.on("finish", function () {
95+
obj.on("error", function () {
9696
expect(obj.commit()).to.eventually.be
9797
.rejectedWith("already destroyed").notify(done);
9898
});

0 commit comments

Comments
 (0)