kingoftime-cli/test/commands/hello/index.test.ts

11 lines
238 B
TypeScript
Raw Normal View History

2023-04-14 13:13:50 +00:00
import {expect, test} from '@oclif/test'
describe('hello', () => {
test
.stdout()
.command(['hello', 'friend', '--from=oclif'])
.it('runs hello cmd', ctx => {
expect(ctx.stdout).to.contain('hello friend from oclif!')
})
})