mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
reduce unnecessary output on tests (#4148)
This commit is contained in:
parent
fa5f3aa600
commit
c65d0c63e7
6 changed files with 187 additions and 191 deletions
|
@ -4,7 +4,7 @@ import { assert, assertEquals } from "../testing/asserts.ts";
|
|||
import * as path from "../path/mod.ts";
|
||||
import { copyBytes, tempFile } from "./util.ts";
|
||||
|
||||
test(function testCopyBytes(): void {
|
||||
test("[io/tuil] copyBytes", function(): void {
|
||||
const dst = new Uint8Array(4);
|
||||
|
||||
dst.fill(0);
|
||||
|
@ -38,12 +38,11 @@ test(function testCopyBytes(): void {
|
|||
assertEquals(dst, Uint8Array.of(3, 4, 0, 0));
|
||||
});
|
||||
|
||||
test(async function ioTempfile(): Promise<void> {
|
||||
test("[io/util] tempfile", async function(): Promise<void> {
|
||||
const f = await tempFile(".", {
|
||||
prefix: "prefix-",
|
||||
postfix: "-postfix"
|
||||
});
|
||||
console.log(f.file, f.filepath);
|
||||
const base = path.basename(f.filepath);
|
||||
assert(!!base.match(/^prefix-.+?-postfix$/));
|
||||
await remove(f.filepath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue