const isClass = (f) => { return ( (_isFunction(f)) && (/^class\s/.test(Function.prototype.toString.call(f))) ) }
it('passes a debugger to the example', (done) => { runExample(getRunArgs(), async (args) => { assert.ok(_isObject(args), 'example not passed a tooling object') assert.ok(_isFunction(args.debug), 'example not passed a debug() instance') done() }) })
it('sequencingEnabled: returns sequencing status', () => { ws = createTestWSv2Instance({ seqAudit: false }) assert.ok(_isFunction(ws.sequencingEnabled), 'WSv2 does not provide sequencingEnabled()') assert.ok(!ws.sequencingEnabled(), 'sequencing enabled even though disabled in constructor') ws.enableSequencing() assert.ok(ws.sequencingEnabled(), 'sequencing status not reported by getter') })
it('provides a readline instance if requested', () => { runExample(getRunArgs({ readline: true }), ({ readline }) => { assert.ok(_isFunction(readline.questionAsync), 'no readline instance provided') }) })
it('passes a specialized table logging function to the example', (done) => { runExample(getRunArgs(), async (args) => { assert.ok(_isObject(args), 'example not passed a tooling object') assert.ok(_isFunction(args.debugTable), 'example not passed a debugTable() instance') done() }) })