diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-01-01 22:46:17 -0500 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-02 13:45:42 -0500 |
| commit | 6a783ea179de1321ae7fd0586967476e72984c63 (patch) | |
| tree | cafa2e3716ee3dcfa88354e4a7190cab7e436613 /test.ts | |
| parent | 6545e5bde9454e9ae7ab61b0f4ee95db8a15e43c (diff) | |
Add testing module
Original: https://github.com/denoland/deno_std/commit/61fdae51a7cc50874b9674c40b1aef3fbf012494
Diffstat (limited to 'test.ts')
| -rwxr-xr-x | test.ts | 28 |
1 files changed, 9 insertions, 19 deletions
@@ -1,27 +1,14 @@ #!/usr/bin/env deno --allow-run --allow-net --allow-write import { run } from "deno"; -// colors tests import "colors/main_test.ts"; - -// flags tests +import "examples/test.ts"; import "flags/test.ts"; - -// net tests +import "logging/test.ts"; +import "mkdirp/test.ts"; import "net/bufio_test.ts"; import "net/http_test.ts"; import "net/textproto_test.ts"; -import "examples/test.ts"; -import { runTests, completePromise } from "net/file_server_test.ts"; - -// logging tests -import "logging/test.ts"; - -// file server test -const fileServer = run({ - args: ["deno", "--allow-net", "net/file_server.ts", ".", "--cors"] -}); -// path test import "path/basename_test.ts"; import "path/dirname_test.ts"; import "path/extname_test.ts"; @@ -31,11 +18,14 @@ import "path/parse_format_test.ts"; import "path/relative_test.ts"; import "path/resolve_test.ts"; import "path/zero_length_strings_test.ts"; +import "testing/test.ts"; -// mkdirp tests -import "mkdirp/test.ts"; +import { runTests, completePromise } from "net/file_server_test.ts"; + +const fileServer = run({ + args: ["deno", "--allow-net", "net/file_server.ts", ".", "--cors"] +}); -// I am also too lazy to do this properly LOL runTests(new Promise(res => setTimeout(res, 5000))); (async () => { await completePromise; |
