@rawcmd/core
Version:
Rawcmd core package.
18 lines (13 loc) • 400 B
text/typescript
import { Spec } from '@hayspec/spec';
import { ConsoleStreamlet } from '../../../src';
const spec = new Spec<{
streamlet: ConsoleStreamlet;
}>();
spec.beforeEach((ctx) => {
ctx.set('streamlet', new ConsoleStreamlet());
});
spec.test('returns screen width', async (ctx) => {
const streamlet = ctx.get('streamlet');
ctx.is(streamlet.width, process.stdout.columns);
});
export default spec;