17 lines
358 B
TypeScript
17 lines
358 B
TypeScript
import {expect, test} from '@oclif/test'
|
|
|
|
describe('checkout', () => {
|
|
test
|
|
.stdout()
|
|
.command(['checkout'])
|
|
.it('runs hello', ctx => {
|
|
expect(ctx.stdout).to.contain('hello world')
|
|
})
|
|
|
|
test
|
|
.stdout()
|
|
.command(['checkout', '--name', 'jeff'])
|
|
.it('runs hello --name jeff', ctx => {
|
|
expect(ctx.stdout).to.contain('hello jeff')
|
|
})
|
|
})
|