create-dxcli
Version:
dxcli: create your own CLI
16 lines (13 loc) • 375 B
JavaScript
const {expect, test} = require('@dxcli/dev-test')
describe('command', () => {
test
.stdout()
.command(['hello'])
.do(output => expect(output.stdout).to.contain('hello world!'))
.it('says hello')
test
.stdout()
.command(['hello', '--name', 'jeff'])
.do(output => expect(output.stdout).to.contain('hello jeff!'))
.it('says hello jeff')
})