diff --git a/archive/tar_test.ts b/archive/tar_test.ts index da2ae9992ac8..3c746cc4e6cd 100644 --- a/archive/tar_test.ts +++ b/archive/tar_test.ts @@ -43,7 +43,7 @@ Deno.test("createTarArchive", async function () { assertEquals(wrote, 3072); }); -Deno.test("deflateTarArchive", async function () { +Deno.test("Tar() deflates tar archive", async function () { const fileName = "output.txt"; const text = "hello tar world!"; @@ -67,7 +67,7 @@ Deno.test("deflateTarArchive", async function () { assertEquals(untarText, text); }); -Deno.test("appendFileWithLongNameToTarArchive", async function (): Promise< +Deno.test("Tar() appends file with long name to tar archive", async function (): Promise< void > { // 9 * 15 + 13 = 148 bytes @@ -95,7 +95,7 @@ Deno.test("appendFileWithLongNameToTarArchive", async function (): Promise< assertEquals(untarText, text); }); -Deno.test("directoryEntryType", async function () { +Deno.test("Tar() checks directory entry type", async function () { const tar = new Tar(); tar.append("directory/", { diff --git a/archive/untar_test.ts b/archive/untar_test.ts index 5e65e5b7b21c..d0ee505c532d 100644 --- a/archive/untar_test.ts +++ b/archive/untar_test.ts @@ -40,7 +40,7 @@ async function createTar(entries: TestEntry[]): Promise { return tar; } -Deno.test("untarAsyncIterator", async function () { +Deno.test("Untar() works as an async iterator", async () => { const entries: TestEntry[] = [ { name: "output.txt", @@ -77,9 +77,7 @@ Deno.test("untarAsyncIterator", async function () { assertEquals(entries.length, 0); }); -Deno.test("untarAsyncIteratorWithoutReadingBody", async function (): Promise< - void -> { +Deno.test("Untar() reads without body", async () => { const entries: TestEntry[] = [ { name: "output.txt", @@ -106,8 +104,8 @@ Deno.test("untarAsyncIteratorWithoutReadingBody", async function (): Promise< }); Deno.test( - "untarAsyncIteratorWithoutReadingBodyFromFileReader", - async function () { + "Untar() reads without body from FileReader", + async () => { const entries: TestEntry[] = [ { name: "output.txt", @@ -142,7 +140,7 @@ Deno.test( }, ); -Deno.test("untarAsyncIteratorFromFileReader", async function () { +Deno.test("Untar() reads from FileReader", async () => { const entries: TestEntry[] = [ { name: "output.txt", @@ -184,8 +182,8 @@ Deno.test("untarAsyncIteratorFromFileReader", async function () { }); Deno.test( - "untarAsyncIteratorReadingLessThanRecordSize", - async function () { + "Untar() reads less than record size", + async () => { // record size is 512 const bufSizes = [1, 53, 256, 511]; @@ -229,7 +227,7 @@ Deno.test( }, ); -Deno.test("untarLinuxGeneratedTar", async function () { +Deno.test("Untar() works with Linux generated tar", async () => { const filePath = resolve(testdataDir, "deno.tar"); const file = await Deno.open(filePath, { read: true }); @@ -326,7 +324,7 @@ Deno.test("untarLinuxGeneratedTar", async function () { }); Deno.test({ - name: "test TarEntry", + name: "TarEntry() handles meta", // only: true, fn() { // test TarEntry class @@ -354,7 +352,7 @@ Deno.test({ }, }); -Deno.test("untarArchiveWithLink", async function () { +Deno.test("Untar() handles archive with link", async function () { const filePath = resolve(testdataDir, "with_link.tar"); const file = await Deno.open(filePath, { read: true });