diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 17:24:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 17:24:27 +0100 |
commit | 61273085e40fb4d992eef4b1b5601e3567c80664 (patch) | |
tree | 1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/flags/dotted_test.ts | |
parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/flags/dotted_test.ts')
-rwxr-xr-x | std/flags/dotted_test.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/std/flags/dotted_test.ts b/std/flags/dotted_test.ts index 6b98d11d0..93dd3031f 100755 --- a/std/flags/dotted_test.ts +++ b/std/flags/dotted_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 dottedAlias(): void { +Deno.test(function dottedAlias(): void { const argv = parse(["--a.b", "22"], { default: { "a.b": 11 }, alias: { "a.b": "aa.bb" } @@ -12,13 +11,13 @@ test(function dottedAlias(): void { assertEquals(argv.aa.bb, 22); }); -test(function dottedDefault(): void { +Deno.test(function dottedDefault(): void { const argv = parse([], { default: { "a.b": 11 }, alias: { "a.b": "aa.bb" } }); assertEquals(argv.a.b, 11); assertEquals(argv.aa.bb, 11); }); -test(function dottedDefaultWithNoAlias(): void { +Deno.test(function dottedDefaultWithNoAlias(): void { const argv = parse([], { default: { "a.b": 11 } }); assertEquals(argv.a.b, 11); }); |