summaryrefslogtreecommitdiff
path: root/std/util
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-28 12:33:09 +0200
committerGitHub <noreply@github.com>2020-04-28 12:33:09 +0200
commit8feb30e3258ed9690eb850e3ca22842b260a0403 (patch)
tree6805bfe3df675c2c7f6a379093061c6b73d8365a /std/util
parentb508e845671de9351c3f51755647371d76128d29 (diff)
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named function.
Diffstat (limited to 'std/util')
-rw-r--r--std/util/async_test.ts12
-rw-r--r--std/util/deep_assign_test.ts2
2 files changed, 7 insertions, 7 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]);
diff --git a/std/util/deep_assign_test.ts b/std/util/deep_assign_test.ts
index e759a33ac..f1a56e1ad 100644
--- a/std/util/deep_assign_test.ts
+++ b/std/util/deep_assign_test.ts
@@ -3,7 +3,7 @@ const { test } = Deno;
import { assertEquals, assert } from "../testing/asserts.ts";
import { deepAssign } from "./deep_assign.ts";
-test(function deepAssignTest(): void {
+test("deepAssignTest", function (): void {
const date = new Date("1979-05-27T07:32:00Z");
const reg = RegExp(/DENOWOWO/);
const obj1 = { deno: { bar: { deno: ["is", "not", "node"] } } };