Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/decode-blob.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { encode, decode, decodeAsync } from "../src/index.ts";

(typeof Blob !== "undefined" ? describe : describe.skip)("Blob", () => {
it("decodes it with `decode()`", async function () {
const blob = new Blob([encode("Hello!") as BlobPart]);
const blob = new Blob([encode("Hello!")]);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!blob.arrayBuffer) {
this.skip();
Expand All @@ -12,7 +12,7 @@ import { encode, decode, decodeAsync } from "../src/index.ts";
});

it("decodes it with `decodeAsync()`", async function () {
const blob = new Blob([encode("Hello!") as BlobPart]);
const blob = new Blob([encode("Hello!")]);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!blob.stream) {
this.skip();
Expand Down
Loading