Skip to content

Commit 63a9c44

Browse files
committed
fix tests on Edge for ReadableStream
1 parent 7513075 commit 63a9c44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/whatwg-streams.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { decodeAsync, encode, decodeArrayStream } from "@msgpack/msgpack";
33

44
describe("whatwg streams", () => {
55
before(function() {
6-
if (typeof ReadableStream === "undefined") {
6+
// Edge <= 18 has no ReadableStream constructor
7+
if (typeof ReadableStream === "function") {
78
this.skip();
89
}
910
});

0 commit comments

Comments
 (0)