@rawcmd/core
Version:
Rawcmd core package.
13 lines (9 loc) • 300 B
text/typescript
import { Spec } from '@hayspec/spec';
import { Command } from '../../../src';
const spec = new Spec();
spec.test('returns command resolver', async (ctx) => {
const resolver = () => true;
const command = new Command({ resolver });
ctx.is(command.resolver, resolver);
});
export default spec;