adevtool/test/commands/hello.test.ts

18 lines
349 B
TypeScript
Raw Normal View History

2021-11-07 07:34:51 +01:00
import {expect, test} from '@oclif/test'
describe('hello', () => {
test
.stdout()
.command(['hello'])
.it('runs hello', ctx => {
expect(ctx.stdout).to.contain('hello world')
})
test
.stdout()
.command(['hello', '--name', 'jeff'])
.it('runs hello --name jeff', ctx => {
expect(ctx.stdout).to.contain('hello jeff')
})
})