diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-28 12:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:33:09 +0200 |
commit | 8feb30e3258ed9690eb850e3ca22842b260a0403 (patch) | |
tree | 6805bfe3df675c2c7f6a379093061c6b73d8365a /std/examples/test.ts | |
parent | b508e845671de9351c3f51755647371d76128d29 (diff) |
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named
function.
Diffstat (limited to 'std/examples/test.ts')
-rw-r--r-- | std/examples/test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/examples/test.ts b/std/examples/test.ts index 6e26407fb..acda9293d 100644 --- a/std/examples/test.ts +++ b/std/examples/test.ts @@ -3,16 +3,16 @@ const { run } = Deno; import { assertEquals } from "../testing/asserts.ts"; /** Example of how to do basic tests */ -Deno.test(function t1(): void { +Deno.test("t1", function (): void { assertEquals("hello", "hello"); }); -Deno.test(function t2(): void { +Deno.test("t2", function (): void { assertEquals("world", "world"); }); /** A more complicated test that runs a subprocess. */ -Deno.test(async function catSmoke(): Promise<void> { +Deno.test("catSmoke", async function (): Promise<void> { const p = run({ cmd: [ Deno.execPath(), |