From a6e164441c2f201d53863cae5fd7fdd68adf6fb7 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Fri, 8 Feb 2019 20:23:51 +0300 Subject: [PATCH] Clean up tests (denoland/deno_std#176) Original: https://github.com/denoland/deno_std/commit/f2d23f8fcd3970a71d33d6cf6447a06ffcc12864 --- fs/path/test.ts | 9 +++++++++ io/test.ts | 3 +++ log/test.ts | 3 +++ test.ts | 17 ++--------------- ws/test.ts | 2 ++ 5 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 fs/path/test.ts create mode 100644 io/test.ts diff --git a/fs/path/test.ts b/fs/path/test.ts new file mode 100644 index 0000000000..3664ae5f10 --- /dev/null +++ b/fs/path/test.ts @@ -0,0 +1,9 @@ +import "./basename_test.ts"; +import "./dirname_test.ts"; +import "./extname_test.ts"; +import "./isabsolute_test.ts"; +import "./join_test.ts"; +import "./parse_format_test.ts"; +import "./relative_test.ts"; +import "./resolve_test.ts"; +import "./zero_length_strings_test.ts"; diff --git a/io/test.ts b/io/test.ts new file mode 100644 index 0000000000..b414e65057 --- /dev/null +++ b/io/test.ts @@ -0,0 +1,3 @@ +import "./bufio_test.ts"; +import "./ioutil_test.ts"; +import "./util_test.ts"; diff --git a/log/test.ts b/log/test.ts index f9ab4222e1..918368b97f 100644 --- a/log/test.ts +++ b/log/test.ts @@ -5,6 +5,9 @@ import { BaseHandler } from "./handlers.ts"; import { LogRecord } from "./logger.ts"; import { LogLevel } from "./levels.ts"; +import "./handlers_test.ts"; +import "./logger_test.ts"; + // constructor(levelName: string, options: HandlerOptions = {}) { // this.level = getLevelByName(levelName); // this.levelName = levelName; diff --git a/test.ts b/test.ts index 0c4cf95b9c..e4cf14be8d 100755 --- a/test.ts +++ b/test.ts @@ -4,28 +4,15 @@ import "colors/test.ts"; import "datetime/test.ts"; import "examples/test.ts"; import "flags/test.ts"; -import "fs/path/basename_test.ts"; -import "fs/path/dirname_test.ts"; -import "fs/path/extname_test.ts"; -import "fs/path/isabsolute_test.ts"; -import "fs/path/join_test.ts"; -import "fs/path/parse_format_test.ts"; -import "fs/path/relative_test.ts"; -import "fs/path/resolve_test.ts"; -import "fs/path/zero_length_strings_test.ts"; -import "io/bufio_test.ts"; -import "io/ioutil_test.ts"; -import "io/util_test.ts"; +import "fs/path/test.ts"; +import "io/test.ts"; import "http/server_test.ts"; import "http/file_server_test.ts"; import "log/test.ts"; -import "log/handlers_test.ts"; -import "log/logger_test.ts"; import "media_types/test.ts"; import "prettier/main_test.ts"; import "testing/test.ts"; import "textproto/test.ts"; -import "ws/sha1_test.ts"; import "ws/test.ts"; import "testing/main.ts"; diff --git a/ws/test.ts b/ws/test.ts index 252d8775bd..6a78d9fe07 100644 --- a/ws/test.ts +++ b/ws/test.ts @@ -1,4 +1,6 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +import "./sha1_test.ts"; + import { Buffer } from "deno"; import { BufReader } from "../io/bufio.ts"; import { test, assert, assertEqual } from "../testing/mod.ts";