diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-01 09:47:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 10:47:23 +0200 |
| commit | 270e87d9db48e983671848257eb360b4c7405d31 (patch) | |
| tree | 93d5de3a77343a7035287831bb535371ed6fea17 /std | |
| parent | 017a611131a35ccf5dbfce6a2a665fa569e32ec1 (diff) | |
refactor(cli/js/testing): Reduce testing interfaces (#4451)
* Reduce "testing" interfaces
* Use a callback instead of a generator for Deno.runTests()
* Default RunTestsOptions::reportToConsole to true
* Compose TestMessage into a single interface
Diffstat (limited to 'std')
| -rw-r--r-- | std/fs/walk_test.ts | 2 | ||||
| -rw-r--r-- | std/testing/README.md | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/std/fs/walk_test.ts b/std/fs/walk_test.ts index 96bfcae67..57d3cf8ea 100644 --- a/std/fs/walk_test.ts +++ b/std/fs/walk_test.ts @@ -7,7 +7,7 @@ const isWindows = Deno.build.os == "win"; export function testWalk( setup: (arg0: string) => void | Promise<void>, - t: Deno.TestFunction, + t: () => void | Promise<void>, ignore = false ): void { const name = t.name; diff --git a/std/testing/README.md b/std/testing/README.md index c7c614103..711aa0257 100644 --- a/std/testing/README.md +++ b/std/testing/README.md @@ -46,8 +46,6 @@ Deno.test({ assertEquals({ hello: "world" }, { hello: "world" }); }, }); - -await Deno.runTests(); ``` Short syntax (named function instead of object): |
