diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-03-08 21:27:23 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 11:27:23 +0100 |
commit | b9037c86ed8d1d55a59a1c1298fa12bbfcae6873 (patch) | |
tree | 342ceedb3f4c3221b5ff870bb4b1ca702317ae53 /std/flags/num_test.ts | |
parent | 0dd131d4a512e8e8370b571d6801eabb4cb30e58 (diff) |
Improvements to std/flags. (#4279)
Adds JSDoc to module, improves the typing of the return type, uses
iteration instead of Array forEach, uses the dotall support in Regular
Expression which is now supported in JavaScript, uses destructuring and
nullish coalescing where appropriate.
Diffstat (limited to 'std/flags/num_test.ts')
-rwxr-xr-x | std/flags/num_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/flags/num_test.ts b/std/flags/num_test.ts index 979d36cbf..0d6b634b9 100755 --- a/std/flags/num_test.ts +++ b/std/flags/num_test.ts @@ -33,7 +33,7 @@ Deno.test(function nums(): void { }); Deno.test(function alreadyNumber(): void { - const argv = parse(["-x", 1234, 789]); + const argv = parse(["-x", "1234", "789"]); assertEquals(argv, { x: 1234, _: [789] }); assertEquals(typeof argv.x, "number"); assertEquals(typeof argv._[0], "number"); |