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

18 lines
355 B
TypeScript
Raw Normal View History

import {expect, test} from '@oclif/test'
describe('checkin', () => {
test
.stdout()
.command(['checkin'])
.it('runs hello', ctx => {
expect(ctx.stdout).to.contain('hello world')
})
test
.stdout()
.command(['checkin', '--name', 'jeff'])
.it('runs hello --name jeff', ctx => {
expect(ctx.stdout).to.contain('hello jeff')
})
})