Skip to content

Commit

Permalink
fix: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent 6fd821c commit d33c3d8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 31 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"wrap-ansi": "^3.0.1"
},
"devDependencies": {
"@anycli/config": "^1.3.31",
"@anycli/dev-cli": "^0.3.2",
"@anycli/config": "^1.3.36",
"@anycli/dev-cli": "^0.3.7",
"@anycli/errors": "^0.2.1",
"@anycli/plugin-legacy": "^0.0.5",
"@anycli/plugin-legacy": "^0.1.0",
"@anycli/plugin-plugins": "^0.2.14",
"@anycli/test": "^0.10.13",
"@anycli/tslint": "^0.2.7",
Expand Down
1 change: 0 additions & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export default class CommandHelp {
}

protected examples(examples: string[] | undefined | string): string | undefined {
console.dir(examples)
if (!examples || !examples.length) return
let body = castArray(examples).map(a => this.render(a)).join('\n')
return [
Expand Down
2 changes: 1 addition & 1 deletion test/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const test = base
.add('help', ctx => new Help(ctx.config))
.register('commandHelp', (command?: Config.Command.Class) => ({
run(ctx: {help: Help, commandHelp: string, expectation: string}) {
const cached = Config.Command.toCached(command!)
const cached = Config.Command.toCached(command!, {} as any)
let help = ctx.help.command(cached)
if (process.env.TEST_OUTPUT === '1') {
// tslint:disable-next-line
Expand Down
64 changes: 38 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,28 @@
# yarn lockfile v1


"@anycli/command@^1.2.13":
version "1.2.13"
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.13.tgz#2c3470a3f3b952aa42dd1b2491de85e116c28ae0"
dependencies:
"@anycli/parser" "^3.2.6"

"@anycli/command@^1.2.14":
version "1.2.14"
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.14.tgz#de8e1be33f64143c49242c0deb7bf9a06a826813"
dependencies:
"@anycli/parser" "^3.2.6"

"@anycli/config@^1.3.23":
version "1.3.25"
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.3.25.tgz#659dd6f3eec5b1f69b4518fb8a3c635529482e2a"

"@anycli/config@^1.3.31":
version "1.3.31"
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.3.31.tgz#33d3b39d2ed46383bbf952f789403681306676c2"
"@anycli/config@^1.3.36":
version "1.3.36"
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.3.36.tgz#ea69dd7b708c6d2543e3f13481bd2f6bca69fa83"

"@anycli/dev-cli@^0.3.2":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@anycli/dev-cli/-/dev-cli-0.3.2.tgz#9ed9fe4994fa9ccf8ac1c77a47f6aa9cde2cb1d1"
"@anycli/dev-cli@^0.3.7":
version "0.3.7"
resolved "https://registry.yarnpkg.com/@anycli/dev-cli/-/dev-cli-0.3.7.tgz#b03996f6f4973649b520a2ffe41c772035d68c59"
dependencies:
"@anycli/command" "^1.2.13"
"@anycli/config" "^1.3.23"
"@anycli/command" "^1.2.14"
"@anycli/config" "^1.3.36"
"@anycli/errors" "^0.2.1"
"@anycli/plugin-help" "^0.6.8"
"@anycli/plugin-help" "^0.6.9"
lodash.template "^4.4.0"
normalize-package-data "^2.4.0"
require-relative "^0.8.7"
require-resolve "^0.0.2"

"@anycli/errors@^0.2.1":
version "0.2.1"
Expand All @@ -47,21 +39,21 @@
version "3.2.6"
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.6.tgz#bbd119a80709099179a9f11af0dc44b68c54575b"

"@anycli/plugin-help@^0.6.8":
version "0.6.8"
resolved "https://registry.yarnpkg.com/@anycli/plugin-help/-/plugin-help-0.6.8.tgz#1102006c7b8a49d3f6e56d9dad1f7fc5f69a223c"
"@anycli/plugin-help@^0.6.9":
version "0.6.9"
resolved "https://registry.yarnpkg.com/@anycli/plugin-help/-/plugin-help-0.6.9.tgz#1ff4a4aac9f8e56f3d36ffc1270e50fb1c453b4d"
dependencies:
"@anycli/command" "^1.2.13"
"@anycli/command" "^1.2.14"
chalk "^2.3.0"
indent-string "^3.2.0"
lodash.template "^4.4.0"
string-width "^2.1.1"
widest-line "^2.0.0"
wrap-ansi "^3.0.1"

"@anycli/plugin-legacy@^0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@anycli/plugin-legacy/-/plugin-legacy-0.0.5.tgz#88cf351dfe10416d5aa118dcd5494aa599a8d224"
"@anycli/plugin-legacy@^0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@anycli/plugin-legacy/-/plugin-legacy-0.1.0.tgz#5b980d0decba6fbe569a0a49bd10ed9fd160afab"
dependencies:
"@anycli/command" "^1.2.14"
"@heroku-cli/color" "^1.1.3"
Expand Down Expand Up @@ -773,6 +765,10 @@ password-prompt@^1.0.4:
ansi-escapes "^3.0.0"
cross-spawn "^5.1.0"

path-extra@^1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/path-extra/-/path-extra-1.0.3.tgz#7c112189a6e50d595790e7ad2037e44e410c1166"

path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
Expand Down Expand Up @@ -809,6 +805,16 @@ redeyed@~1.0.0:
dependencies:
esprima "~3.0.0"

require-relative@^0.8.7:
version "0.8.7"
resolved "https://registry.yarnpkg.com/require-relative/-/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de"

require-resolve@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/require-resolve/-/require-resolve-0.0.2.tgz#bab410ab1aee2f3f55b79317451dd3428764e6f3"
dependencies:
x-path "^0.0.2"

resolve@^1.3.2:
version "1.5.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
Expand Down Expand Up @@ -1094,6 +1100,12 @@ wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"

x-path@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/x-path/-/x-path-0.0.2.tgz#294d076bb97a7706cc070bbb2a6fd8c54df67b12"
dependencies:
path-extra "^1.0.2"

yallist@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
Expand Down

0 comments on commit d33c3d8

Please sign in to comment.