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 17, 2018
1 parent c60c0cb commit 967d74a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/oclif/plugin-help/issues",
"dependencies": {
"@oclif/command": "^1.3.1",
"@oclif/command": "^1.3.3",
"chalk": "^2.3.1",
"indent-string": "^3.2.0",
"lodash.template": "^4.4.0",
Expand All @@ -15,10 +15,10 @@
},
"devDependencies": {
"@oclif/config": "^1.3.57",
"@oclif/dev-cli": "^1.2.16",
"@oclif/dev-cli": "^1.2.17",
"@oclif/errors": "^1.0.2",
"@oclif/plugin-legacy": "^1.0.4",
"@oclif/plugin-plugins": "^1.0.1",
"@oclif/plugin-plugins": "^1.0.3",
"@oclif/test": "^1.0.1",
"@oclif/tslint": "^1.0.2",
"@types/chai": "^4.1.2",
Expand Down
24 changes: 24 additions & 0 deletions test/commands/help.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
import {expect, test} from '@oclif/test'

describe('help command', () => {
test
.stdout()
.command(['help', 'plugins'])
.it('shows plugins command help', ctx => {
expect(ctx.stdout).to.equal(`list installed plugins
USAGE
$ oclif plugins
OPTIONS
--core show core plugins
EXAMPLE
$ oclif plugins
COMMANDS
plugins:install installs a plugin into the CLI
plugins:uninstall removes a plugin from the CLI
plugins:update update installed plugins
`)
})

test
.stdout()
.command(['help', 'help'])
.skip()
.it('shows help command help', ctx => {
expect(ctx.stdout).to.equal(`display help for oclif
Expand Down
32 changes: 16 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@
call-me-maybe "^1.0.1"
glob-to-regexp "^0.3.0"

"@oclif/command@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.3.1.tgz#b2e063034f2fd39d89729bb2fe8f9cb070c4b4e1"
"@oclif/command@^1.3.1", "@oclif/command@^1.3.3":
version "1.3.3"
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.3.3.tgz#7b73869d43db1d12d90a973d4eff90735e882160"
dependencies:
"@oclif/parser" "^3.2.9"
semver "^5.5.0"

"@oclif/config@^1.3.56", "@oclif/config@^1.3.57":
"@oclif/config@^1.3.57":
version "1.3.57"
resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.3.57.tgz#845ed86c01911860d49853aaab28f76c7f7a5f43"

"@oclif/dev-cli@^1.2.16":
version "1.2.16"
resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.2.16.tgz#50d3ff41f33d4100a44183494de3b3eff1a73dd5"
"@oclif/dev-cli@^1.2.17":
version "1.2.17"
resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.2.17.tgz#1ef25368bf4d126be6fb0658c6f70bf40c161766"
dependencies:
"@oclif/command" "^1.3.1"
"@oclif/config" "^1.3.56"
"@oclif/config" "^1.3.57"
"@oclif/errors" "^1.0.2"
"@oclif/plugin-help" "^1.1.0"
"@oclif/plugin-help" "^1.1.2"
lodash "^4.17.5"
lodash.template "^4.4.0"
normalize-package-data "^2.4.0"
Expand All @@ -72,9 +72,9 @@
dependencies:
"@heroku/linewrap" "^1.0.0"

"@oclif/plugin-help@^1.1.0":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.1.1.tgz#29889ca64ef8fa07806fa29805dbdedcb957e796"
"@oclif/plugin-help@^1.1.2":
version "1.1.4"
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.1.4.tgz#41106f91a0ca3e4ded444e6db53eeda27927bd9e"
dependencies:
"@oclif/command" "^1.3.1"
chalk "^2.3.1"
Expand All @@ -95,12 +95,12 @@
debug "^3.1.0"
semver "^5.5.0"

"@oclif/plugin-plugins@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@oclif/plugin-plugins/-/plugin-plugins-1.0.1.tgz#9e9478fea9f153162b0530f62bb552703cbcbfb5"
"@oclif/plugin-plugins@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@oclif/plugin-plugins/-/plugin-plugins-1.0.3.tgz#7fc080fee31e7f45b28154ab641efb78e81d5645"
dependencies:
"@heroku-cli/color" "^1.1.3"
"@oclif/command" "^1.3.1"
"@oclif/command" "^1.3.3"
chalk "^2.3.1"
cli-ux "^3.3.23"
debug "^3.1.0"
Expand Down

0 comments on commit 967d74a

Please sign in to comment.