redmine-time-manager/test/commands/save.test.ts
Pavel Gnedov 380d4c02a8 init
2022-01-30 00:55:41 +07:00

17 lines
346 B
TypeScript

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