create-dxcli
Version:
dxcli: create your own CLI
18 lines (15 loc) • 362 B
text/typescript
import {expect, test} from '@dxcli/dev-test'
describe('command', () => {
test
.stdout()
.command(['hello'])
.it('says hello', output => {
expect(output.stdout).to.contain('hello world!')
})
test
.stdout()
.command(['hello', '--name', 'jeff'])
.it('says hello jeff', output => {
expect(output.stdout).to.contain('hello jeff!')
})
})