UNPKG

validate-reql

Version:

allows validation of rethinkdb reql queries using a whitelist of reql validators. this was specifically designed to work w/ rethinkdb-primus.

20 lines (15 loc) 462 B
if (typeof Promise === 'undefined') require('es6-promise').polyfill() require('../lib/patch-rethinkdb')() var expect = require('chai').expect var r = require('rethinkdb') require('../lib/patch-rethinkdb.js') var describe = global.describe var it = global.it describe('TestTerm tests', function () { it('should do it', function (done) { var fn = function () {} var x = r.rvTest(fn) expect(x.compose()).to.equal(fn.toString()) done() }) })