import {expect, test} from '@oclif/test' <%_ if (type === 'single') { _%> import cmd = require('../src') <%_ } _%> describe('<%- name %>', () => { test .stdout() <%_ if (type === 'single') { _%> .do(() => cmd.run([])) <%_ } else { _%> .command(['<%- name %>']) <%_ } _%> .it('runs hello', ctx => { expect(ctx.stdout).to.contain('hello world') }) test .stdout() <%_ if (type === 'single') { _%> .do(() => cmd.run(['--name', 'jeff'])) <%_ } else { _%> .command(['<%- name %>', '--name', 'jeff']) <%_ } _%> .it('runs hello --name jeff', ctx => { expect(ctx.stdout).to.contain('hello jeff') }) })