@rawcmd/core
Version:
Rawcmd core package.
13 lines (9 loc) • 337 B
text/typescript
import { Spec } from '@hayspec/spec';
import { CommandOption } from '../../../src';
const spec = new Spec();
spec.test('returns command option handlers', async (ctx) => {
const handlers = [{ code: 1000 }];
const option = new CommandOption({ handlers } as any);
ctx.deepEqual(option.handlers, handlers);
});
export default spec;