summaryrefslogtreecommitdiff
path: root/std/flags/num_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/num_test.ts
parente0bcecee6042b219c6626172851af5a25362b948 (diff)
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/flags/num_test.ts')
-rwxr-xr-xstd/flags/num_test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/std/flags/num_test.ts b/std/flags/num_test.ts
index 265a4a3d4..979d36cbf 100755
--- a/std/flags/num_test.ts
+++ b/std/flags/num_test.ts
@@ -1,9 +1,8 @@
// 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 nums(): void {
+Deno.test(function nums(): void {
const argv = parse([
"-x",
"1234",
@@ -33,7 +32,7 @@ test(function nums(): void {
assertEquals(typeof argv._[0], "number");
});
-test(function alreadyNumber(): void {
+Deno.test(function alreadyNumber(): void {
const argv = parse(["-x", 1234, 789]);
assertEquals(argv, { x: 1234, _: [789] });
assertEquals(typeof argv.x, "number");