diff options
Diffstat (limited to 'flags/tests/num.ts')
-rwxr-xr-x | flags/tests/num.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/flags/tests/num.ts b/flags/tests/num.ts index 85efa76a6..c31a2fd4c 100755 --- a/flags/tests/num.ts +++ b/flags/tests/num.ts @@ -1,8 +1,8 @@ import { test, assertEqual } from "https://deno.land/x/testing/testing.ts"; -import parseArgs from "../index.ts"; +import { parse } from "../index.ts"; test(function nums() { - const argv = parseArgs([ + const argv = parse([ '-x', '1234', '-y', '5.67', '-z', '1e7', @@ -27,7 +27,7 @@ test(function nums() { }); test(function alreadyNumber() { - const argv = parseArgs([ '-x', 1234, 789 ]); + const argv = parse([ '-x', 1234, 789 ]); assertEqual(argv, { x : 1234, _ : [ 789 ] }); assertEqual(typeof argv.x, 'number'); assertEqual(typeof argv._[0], 'number'); |