diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-28 12:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:33:09 +0200 |
commit | 8feb30e3258ed9690eb850e3ca22842b260a0403 (patch) | |
tree | 6805bfe3df675c2c7f6a379093061c6b73d8365a /std/util/async_test.ts | |
parent | b508e845671de9351c3f51755647371d76128d29 (diff) |
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named
function.
Diffstat (limited to 'std/util/async_test.ts')
-rw-r--r-- | std/util/async_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/std/util/async_test.ts b/std/util/async_test.ts index d81b52b43..f3f17312a 100644 --- a/std/util/async_test.ts +++ b/std/util/async_test.ts @@ -3,7 +3,7 @@ const { test } = Deno; import { assert, assertEquals, assertStrictEq } from "../testing/asserts.ts"; import { collectUint8Arrays, deferred, MuxAsyncIterator } from "./async.ts"; -test(function asyncDeferred(): Promise<void> { +test("asyncDeferred", function (): Promise<void> { const d = deferred<number>(); d.resolve(12); return Promise.resolve(); @@ -23,7 +23,7 @@ async function* gen456(): AsyncIterableIterator<number> { yield 6; } -test(async function asyncMuxAsyncIterator(): Promise<void> { +test("asyncMuxAsyncIterator", async function (): Promise<void> { const mux = new MuxAsyncIterator<number>(); mux.add(gen123()); mux.add(gen456()); @@ -34,21 +34,21 @@ test(async function asyncMuxAsyncIterator(): Promise<void> { assertEquals(results.size, 6); }); -test(async function collectUint8Arrays0(): Promise<void> { +test("collectUint8Arrays0", async function (): Promise<void> { async function* gen(): AsyncIterableIterator<Uint8Array> {} const result = await collectUint8Arrays(gen()); assert(result instanceof Uint8Array); assertEquals(result.length, 0); }); -test(async function collectUint8Arrays0(): Promise<void> { +test("collectUint8Arrays0", async function (): Promise<void> { async function* gen(): AsyncIterableIterator<Uint8Array> {} const result = await collectUint8Arrays(gen()); assert(result instanceof Uint8Array); assertStrictEq(result.length, 0); }); -test(async function collectUint8Arrays1(): Promise<void> { +test("collectUint8Arrays1", async function (): Promise<void> { const buf = new Uint8Array([1, 2, 3]); // eslint-disable-next-line require-await async function* gen(): AsyncIterableIterator<Uint8Array> { @@ -59,7 +59,7 @@ test(async function collectUint8Arrays1(): Promise<void> { assertStrictEq(result.length, 3); }); -test(async function collectUint8Arrays4(): Promise<void> { +test("collectUint8Arrays4", async function (): Promise<void> { // eslint-disable-next-line require-await async function* gen(): AsyncIterableIterator<Uint8Array> { yield new Uint8Array([1, 2, 3]); |