summaryrefslogtreecommitdiff
path: root/cli/tests/unit/filereader_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-11-23 17:45:18 +0100
committerGitHub <noreply@github.com>2021-11-23 17:45:18 +0100
commitbedb2adfb065c1b0d3bcb773fbeff91230402b6b (patch)
treeb4d90c36f2409f7f9b6247b74e9c111a38befcdf /cli/tests/unit/filereader_test.ts
parent51e3db956a5927229e3f46f4eaaf317e935f8f17 (diff)
refactor: remove "unitTest" wrapper from cli/tests/unit (#12750)
Diffstat (limited to 'cli/tests/unit/filereader_test.ts')
-rw-r--r--cli/tests/unit/filereader_test.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/cli/tests/unit/filereader_test.ts b/cli/tests/unit/filereader_test.ts
index bc9beab70..3d49b20b5 100644
--- a/cli/tests/unit/filereader_test.ts
+++ b/cli/tests/unit/filereader_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, unitTest } from "./test_util.ts";
+import { assertEquals } from "./test_util.ts";
-unitTest(function fileReaderConstruct() {
+Deno.test(function fileReaderConstruct() {
const fr = new FileReader();
assertEquals(fr.readyState, FileReader.EMPTY);
@@ -10,7 +10,7 @@ unitTest(function fileReaderConstruct() {
assertEquals(FileReader.DONE, 2);
});
-unitTest(async function fileReaderLoadBlob() {
+Deno.test(async function fileReaderLoadBlob() {
await new Promise<void>((resolve) => {
const fr = new FileReader();
const b1 = new Blob(["Hello World"]);
@@ -77,7 +77,7 @@ unitTest(async function fileReaderLoadBlob() {
});
});
-unitTest(async function fileReaderLoadBlobDouble() {
+Deno.test(async function fileReaderLoadBlobDouble() {
// impl note from https://w3c.github.io/FileAPI/
// Event handler for the load or error events could have started another load,
// if that happens the loadend event for the first load is not fired
@@ -107,7 +107,7 @@ unitTest(async function fileReaderLoadBlobDouble() {
});
});
-unitTest(async function fileReaderLoadBlobArrayBuffer() {
+Deno.test(async function fileReaderLoadBlobArrayBuffer() {
await new Promise<void>((resolve) => {
const fr = new FileReader();
const b1 = new Blob(["Hello World"]);
@@ -129,7 +129,7 @@ unitTest(async function fileReaderLoadBlobArrayBuffer() {
});
});
-unitTest(async function fileReaderLoadBlobDataUrl() {
+Deno.test(async function fileReaderLoadBlobDataUrl() {
await new Promise<void>((resolve) => {
const fr = new FileReader();
const b1 = new Blob(["Hello World"]);
@@ -149,7 +149,7 @@ unitTest(async function fileReaderLoadBlobDataUrl() {
});
});
-unitTest(async function fileReaderLoadBlobAbort() {
+Deno.test(async function fileReaderLoadBlobAbort() {
await new Promise<void>((resolve) => {
const fr = new FileReader();
const b1 = new Blob(["Hello World"]);
@@ -184,7 +184,7 @@ unitTest(async function fileReaderLoadBlobAbort() {
});
});
-unitTest(async function fileReaderLoadBlobAbort() {
+Deno.test(async function fileReaderLoadBlobAbort() {
await new Promise<void>((resolve) => {
const fr = new FileReader();
const b1 = new Blob(["Hello World"]);
@@ -219,7 +219,7 @@ unitTest(async function fileReaderLoadBlobAbort() {
});
});
-unitTest(
+Deno.test(
async function fileReaderDispatchesEventsInCorrectOrder() {
await new Promise<void>((resolve) => {
const fr = new FileReader();