diff options
Diffstat (limited to 'std/flags/short_test.ts')
-rwxr-xr-x | std/flags/short_test.ts | 9 |
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, |