Files
massarg/test/example.test.ts

15 lines
368 B
TypeScript

import { MassargCommand } from '../src/command'
import { massarg } from '../src/index'
const opts = {
name: 'test',
description: 'test',
}
test('example', () => {
const command = massarg(opts)
expect(command.example).toBeInstanceOf(Function)
expect(command.example({ description: 'test', input: '', output: '' })).toBeInstanceOf(
MassargCommand,
)
})