Skip to content

Commit dfd5f83

Browse files
committed
remove nodejs 12 suppport, fix tests
1 parent af9deb4 commit dfd5f83

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
strategy:
1414
matrix:
1515
node-version:
16-
- '12'
1716
- '14'
1817
- '16'
1918
- '18'

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"@typescript-eslint/eslint-plugin": "latest",
6262
"@typescript-eslint/parser": "latest",
6363
"assert": "latest",
64-
"blob-polyfill": "latest",
6564
"buffer": "latest",
6665
"core-js": "latest",
6766
"eslint": "latest",

test/decode-blob.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import assert from "assert";
2-
import "web-streams-polyfill";
32
import { encode, decode, decodeAsync } from "@msgpack/msgpack";
43

5-
const MyBlob: typeof Blob = typeof Blob !== "undefined" ? Blob : require("blob-polyfill").Blob;
6-
74
describe("Blob", () => {
85
it("decodes it with `decode()`", async function () {
9-
const blob = new MyBlob([encode("Hello!")]);
6+
const blob = new Blob([encode("Hello!")]);
107
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
118
if (!blob.arrayBuffer) {
129
this.skip();
@@ -15,7 +12,7 @@ describe("Blob", () => {
1512
});
1613

1714
it("decodes it with `decodeAsync()`", async function () {
18-
const blob = new MyBlob([encode("Hello!")]);
15+
const blob = new Blob([encode("Hello!")]);
1916
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2017
if (!blob.stream) {
2118
this.skip();

0 commit comments

Comments
 (0)