From f626b04ebe320a96a220af29595c6ca84cf9a10a Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Sat, 12 Jan 2019 13:50:04 -0800 Subject: Reorgnanize repos, examples and tests (denoland/deno_std#105) Original: https://github.com/denoland/deno_std/commit/c5e6e015b5be19027f60c19ca86283d12f9258f3 --- flags/tests/all_bool.ts | 2 +- flags/tests/bool.ts | 2 +- flags/tests/dash.ts | 2 +- flags/tests/default_bool.ts | 2 +- flags/tests/dotted.ts | 2 +- flags/tests/kv_short.ts | 2 +- flags/tests/long.ts | 2 +- flags/tests/num.ts | 2 +- flags/tests/parse.ts | 2 +- flags/tests/short.ts | 2 +- flags/tests/stop_early.ts | 2 +- flags/tests/unknown.ts | 2 +- flags/tests/whitespace.ts | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) (limited to 'flags/tests') diff --git a/flags/tests/all_bool.ts b/flags/tests/all_bool.ts index 2e0bba4ce..07b12c292 100755 --- a/flags/tests/all_bool.ts +++ b/flags/tests/all_bool.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; // flag boolean true (default all --args to boolean) test(function flagBooleanTrue() { diff --git a/flags/tests/bool.ts b/flags/tests/bool.ts index 5d135028e..6fa014d8d 100755 --- a/flags/tests/bool.ts +++ b/flags/tests/bool.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function flagBooleanDefaultFalse() { const argv = parse(["moo"], { diff --git a/flags/tests/dash.ts b/flags/tests/dash.ts index f8cec6ef7..6ab1a7d75 100755 --- a/flags/tests/dash.ts +++ b/flags/tests/dash.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function hyphen() { assertEqual(parse(["-n", "-"]), { n: "-", _: [] }); diff --git a/flags/tests/default_bool.ts b/flags/tests/default_bool.ts index 8cf6a720b..82dab5538 100755 --- a/flags/tests/default_bool.ts +++ b/flags/tests/default_bool.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function booleanDefaultTrue() { const argv = parse([], { diff --git a/flags/tests/dotted.ts b/flags/tests/dotted.ts index 94867abb2..6b64e3b5e 100755 --- a/flags/tests/dotted.ts +++ b/flags/tests/dotted.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function dottedAlias() { const argv = parse(["--a.b", "22"], { diff --git a/flags/tests/kv_short.ts b/flags/tests/kv_short.ts index 1050d7734..41853c1de 100755 --- a/flags/tests/kv_short.ts +++ b/flags/tests/kv_short.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function short() { const argv = parse(["-b=123"]); diff --git a/flags/tests/long.ts b/flags/tests/long.ts index 41c3e7743..d75ece3b2 100755 --- a/flags/tests/long.ts +++ b/flags/tests/long.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function longOpts() { assertEqual(parse(["--bool"]), { bool: true, _: [] }); diff --git a/flags/tests/num.ts b/flags/tests/num.ts index 0588b51f6..cc5b1b4e3 100755 --- a/flags/tests/num.ts +++ b/flags/tests/num.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function nums() { const argv = parse([ diff --git a/flags/tests/parse.ts b/flags/tests/parse.ts index 30551f875..263335761 100644 --- a/flags/tests/parse.ts +++ b/flags/tests/parse.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function _arseArgs() { assertEqual(parse(["--no-moo"]), { moo: false, _: [] }); diff --git a/flags/tests/short.ts b/flags/tests/short.ts index dee981351..fe8994394 100755 --- a/flags/tests/short.ts +++ b/flags/tests/short.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function numbericShortArgs() { assertEqual(parse(["-n123"]), { n: 123, _: [] }); diff --git a/flags/tests/stop_early.ts b/flags/tests/stop_early.ts index ca64bf97e..aef4d5dc5 100755 --- a/flags/tests/stop_early.ts +++ b/flags/tests/stop_early.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; // stops parsing on the first non-option when stopEarly is set test(function stopParsing() { diff --git a/flags/tests/unknown.ts b/flags/tests/unknown.ts index 2c87b18fe..e86f92796 100755 --- a/flags/tests/unknown.ts +++ b/flags/tests/unknown.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function booleanAndAliasIsNotUnknown() { const unknown = []; diff --git a/flags/tests/whitespace.ts b/flags/tests/whitespace.ts index 8373cd19e..46ad09426 100755 --- a/flags/tests/whitespace.ts +++ b/flags/tests/whitespace.ts @@ -1,5 +1,5 @@ import { test, assertEqual } from "../../testing/mod.ts"; -import { parse } from "../index.ts"; +import { parse } from "../mod.ts"; test(function whitespaceShouldBeWhitespace() { assertEqual(parse(["-x", "\t"]).x, "\t"); -- cgit v1.2.3