Skip to content

Commit

Permalink
fix: bump deps and fix tests (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
peternhale authored Dec 8, 2021
1 parent 6cc7807 commit 064da3f
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 355 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@oclif/plugin-help": "^5.1.7",
"@oclif/test": "^1.2.8",
"@oclif/test": "^2.0.2",
"@types/chai": "^4.1.6",
"@types/lodash": "^4.14.117",
"@types/mocha": "^8.0.0",
Expand All @@ -25,7 +25,7 @@
"mocha": "^8",
"nock": "^13.0.0",
"nyc": "^15.1.0",
"oclif": "^2.0.0-main.15",
"oclif": "2.0.0-main.14",
"shx": "^0.3.3",
"ts-node": "^9.1.1",
"tslib": "^2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions test/commands/commands.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {expect, test} from '@oclif/test'
import {Command} from '@oclif/core'
import Commands from '../../src/commands/commands'
import Commands from '../../lib/commands/commands'

abstract class TestCommand extends Command {
public static testCustomProperty = 'test'
Expand Down Expand Up @@ -44,14 +44,14 @@ const commandList = [{

describe('commands', () => {
test
.loadConfig({root: process.cwd()})
.stdout()
.command(['commands'])
.it('runs commands', (ctx: { stdout: any }) => {
expect(ctx.stdout).to.equal(
' Command Summary \n' +
' ──────── ─────────────────────────────── \n' +
' commands list all the commands \n' +
' help Display help for oclif-example. \n',
' Command Summary \n' +
' ──────── ───────────────────── \n' +
' commands list all the commands \n',
)
})

Expand Down
Loading

0 comments on commit 064da3f

Please sign in to comment.