summaryrefslogtreecommitdiff
path: root/std/flags/short_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-11 17:24:27 +0100
committerGitHub <noreply@github.com>2020-02-11 17:24:27 +0100
commit61273085e40fb4d992eef4b1b5601e3567c80664 (patch)
tree1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/flags/short_test.ts
parente0bcecee6042b219c6626172851af5a25362b948 (diff)
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/flags/short_test.ts')
-rwxr-xr-xstd/flags/short_test.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/std/flags/short_test.ts b/std/flags/short_test.ts
index ff0190437..d7171b920 100755
--- a/std/flags/short_test.ts
+++ b/std/flags/short_test.ts
@@ -1,14 +1,13 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { test } from "../testing/mod.ts";
import { assertEquals } from "../testing/asserts.ts";
import { parse } from "./mod.ts";
-test(function numbericShortArgs(): void {
+Deno.test(function numbericShortArgs(): void {
assertEquals(parse(["-n123"]), { n: 123, _: [] });
assertEquals(parse(["-123", "456"]), { 1: true, 2: true, 3: 456, _: [] });
});
-test(function short(): void {
+Deno.test(function short(): void {
assertEquals(parse(["-b"]), { b: true, _: [] });
assertEquals(parse(["foo", "bar", "baz"]), { _: ["foo", "bar", "baz"] });
assertEquals(parse(["-cats"]), { c: true, a: true, t: true, s: true, _: [] });
@@ -27,7 +26,7 @@ test(function short(): void {
});
});
-test(function mixedShortBoolAndCapture(): void {
+Deno.test(function mixedShortBoolAndCapture(): void {
assertEquals(parse(["-h", "localhost", "-fp", "555", "script.js"]), {
f: true,
p: 555,
@@ -36,7 +35,7 @@ test(function mixedShortBoolAndCapture(): void {
});
});
-test(function shortAndLong(): void {
+Deno.test(function shortAndLong(): void {
assertEquals(parse(["-h", "localhost", "-fp", "555", "script.js"]), {
f: true,
p: 555,