UNPKG

@rawcmd/core

Version:
12 lines (8 loc) 278 B
import { Spec } from '@hayspec/spec'; import { CommandOption } from '../../../src'; const spec = new Spec(); spec.test('returns command option name', async (ctx) => { const option = new CommandOption({ name: 'foo' }); ctx.is(option.name, 'foo'); }); export default spec;