From 8feb30e3258ed9690eb850e3ca22842b260a0403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Apr 2020 12:33:09 +0200 Subject: BREAKING: remove overload of Deno.test() (#4951) This commit removes overload of Deno.test() that accepted named function. --- std/examples/tests/xeval_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/examples/tests') diff --git a/std/examples/tests/xeval_test.ts b/std/examples/tests/xeval_test.ts index 38deda686..426f6fe56 100644 --- a/std/examples/tests/xeval_test.ts +++ b/std/examples/tests/xeval_test.ts @@ -9,13 +9,13 @@ import { } from "../../testing/asserts.ts"; const { execPath, run } = Deno; -Deno.test(async function xevalSuccess(): Promise { +Deno.test("xevalSuccess", async function (): Promise { const chunks: string[] = []; await xeval(stringsReader("a\nb\nc"), ($): number => chunks.push($)); assertEquals(chunks, ["a", "b", "c"]); }); -Deno.test(async function xevalDelimiter(): Promise { +Deno.test("xevalDelimiter", async function (): Promise { const chunks: string[] = []; await xeval(stringsReader("!MADMADAMADAM!"), ($): number => chunks.push($), { delimiter: "MADAM", @@ -43,7 +43,7 @@ Deno.test({ }, }); -Deno.test(async function xevalCliSyntaxError(): Promise { +Deno.test("xevalCliSyntaxError", async function (): Promise { const p = run({ cmd: [execPath(), xevalPath, "("], stdin: "null", -- cgit v1.2.3