adevtool/test/commands/hello.test.ts
2021-11-06 23:34:51 -07:00

17 lines
349 B
TypeScript

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')
})
})