UNPKG

protobuf2swagger

Version:

Convert protobuf to swagger open api v2, v3 JSON

19 lines (17 loc) 414 B
const path = require('path'); const bindHook = require('../lib/bindHook'); describe('bindHook', () => { test('can work', async () => { const testFn = bindHook(process.cwd(), 'lib/bakeRef', 'test', (...args) => args); expect(testFn({}, 'a')).toMatchInlineSnapshot(` Array [ "test", Object {}, Array [ Object {}, "a", ], ] `); }); });