summaryrefslogtreecommitdiff
path: root/cli/tests/unit/test_util.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-06-25 10:44:14 +0900
committerGitHub <noreply@github.com>2021-06-25 03:44:14 +0200
commit66c5f41c5bd5fa08daa09f8650135000c1787829 (patch)
tree05ad5900822d01316ad0c193cd7fcc7953bdf32c /cli/tests/unit/test_util.ts
parentdd4ed825762d32ca9f791bda3bb9c459886c7061 (diff)
test(cli): refactor the usages of delay (#11098)
This PR refactors the usages of delay utility in js unit testing. The same utiliy is defined in several places with different names. This PR replaces those usages with the one provided in std/async/delay.ts to improve the readability and consistency of test code.
Diffstat (limited to 'cli/tests/unit/test_util.ts')
-rw-r--r--cli/tests/unit/test_util.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tests/unit/test_util.ts b/cli/tests/unit/test_util.ts
index 7975f38e5..79e93d70d 100644
--- a/cli/tests/unit/test_util.ts
+++ b/cli/tests/unit/test_util.ts
@@ -22,6 +22,7 @@ export {
} from "../../../test_util/std/testing/asserts.ts";
export { deferred } from "../../../test_util/std/async/deferred.ts";
export type { Deferred } from "../../../test_util/std/async/deferred.ts";
+export { delay } from "../../../test_util/std/async/delay.ts";
export { readLines } from "../../../test_util/std/io/bufio.ts";
export { parse as parseArgs } from "../../../test_util/std/flags/mod.ts";