mirror of
https://github.com/chenasraf/massarg.git
synced 2026-05-17 17:38:09 +00:00
15 lines
368 B
TypeScript
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,
|
|
)
|
|
})
|