Skip to content

Commit

Permalink
Update blob-impl.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ArpanSolanki29 committed Apr 22, 2024
1 parent 292366b commit 4892284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/blob-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ const assert = require("node:assert/strict");
const { describe, it } = require("mocha-sugar-free");

const BlobImpl =
require("../../lib/jsdom/living/file-api/Blob-impl.js").implementation;
require("../lib/jsdom/living/file-api/Blob-impl.js").implementation;
const { TextDecoder } = require("util");
global.TextDecoder = TextDecoder;

describe("File-API: Blob-impl.js", () => {
it("should return correct test from the blob", (done) => {
it("should return correct test from the blob", done => {
const globalObject = {};
const blobData = "Hello World";
const blobPros = { type: "text/plain" };
const blob = new BlobImpl(globalObject, [[blobData], blobPros], {});

blob
.text()
.then((text) => {
.then(text => {
assert.strictEqual(text, blobData, 'Blob text should be "Hello World"');
done();
})
Expand Down

0 comments on commit 4892284

Please sign in to comment.