Closed bitghostm closed 5 years ago
it('throws if one of the query fails', async () => { inst.addTransform('q1', (val, args) => { throw new Error('oops') }) inst.addBinaryOp('is', 100, (val, args) => { return true }) expect(inst.evalSync.bind(inst, '"hello"|q1 is asdf')).toThrow(/oops/) })
56