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/archive/tar_test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'std/archive') diff --git a/std/archive/tar_test.ts b/std/archive/tar_test.ts index cd22addcc..0df9956f2 100644 --- a/std/archive/tar_test.ts +++ b/std/archive/tar_test.ts @@ -15,7 +15,7 @@ import { Tar, Untar } from "./tar.ts"; const filePath = resolve("archive", "testdata", "example.txt"); -Deno.test(async function createTarArchive(): Promise { +Deno.test("createTarArchive", async function (): Promise { // initialize const tar = new Tar(); @@ -40,7 +40,7 @@ Deno.test(async function createTarArchive(): Promise { assertEquals(wrote, 3072); }); -Deno.test(async function deflateTarArchive(): Promise { +Deno.test("deflateTarArchive", async function (): Promise { const fileName = "output.txt"; const text = "hello tar world!"; @@ -63,7 +63,9 @@ Deno.test(async function deflateTarArchive(): Promise { assertEquals(untarText, text); }); -Deno.test(async function appendFileWithLongNameToTarArchive(): Promise { +Deno.test("appendFileWithLongNameToTarArchive", async function (): Promise< + void +> { // 9 * 15 + 13 = 148 bytes const fileName = new Array(10).join("long-file-name/") + "file-name.txt"; const text = "hello tar world!"; -- cgit v1.2.3