UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

25 lines 565 B
import { describe, test, expect } from '@jest/globals'; import { parseArgs } from './args.js'; describe('parseArgs', () => { test('should parse args', async () => { const args = await parseArgs([ 'whook', 'route', '--name', 'getPing', '--parameters', '{}', ]); expect(args).toMatchInlineSnapshot(` { "command": "route", "namedArguments": { "name": "getPing", "parameters": "{}", }, "rest": [], } `); }); }); //# sourceMappingURL=args.test.js.map