Files
cli/test/commands/authenticate.test.ts
Mauricio Siu 6dae0587d8 feat: add
2024-06-04 01:10:32 -06:00

15 lines
423 B
TypeScript

import {runCommand} from '@oclif/test'
import {expect} from 'chai'
describe('authenticate', () => {
it('runs authenticate cmd', async () => {
const {stdout} = await runCommand('authenticate')
expect(stdout).to.contain('hello world')
})
it('runs authenticate --name oclif', async () => {
const {stdout} = await runCommand('authenticate --name oclif')
expect(stdout).to.contain('hello oclif')
})
})