kingoftime-cli/test/commands/checkout.test.ts

18 lines
358 B
TypeScript
Raw Permalink Normal View History

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