UNPKG

create-dxcli

Version:
10 lines (8 loc) 247 B
const {expect, test} = require('@dxcli/test') describe('hooks', () => { test .stdout() .hook('init', {id: 'mycommand'}) .do(output => expect(output.stdout).to.contain('example hook running mycommand')) .it('shows a message') })