rethinkdbdash
Advanced tools
Comparing version 2.0.17 to 2.0.18
@@ -326,6 +326,2 @@ var util = require('util'); | ||
self.resetBufferParameters(); | ||
if (self._healthyPools.length === 0) { | ||
self._flushErrors(); | ||
} | ||
}); | ||
@@ -332,0 +328,0 @@ pool.on('draining', function() { |
{ | ||
"name": "rethinkdbdash", | ||
"version": "2.0.17", | ||
"version": "2.0.18", | ||
"description": "A Node.js driver for RethinkDB with promises and a connection pool", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -286,2 +286,5 @@ var config = require(__dirname+'/config.js'); | ||
result = yield r.and(r.args([true, true, true])).run(); | ||
assert.equal(result, true); | ||
done(); | ||
@@ -293,15 +296,2 @@ } | ||
}) | ||
It('`and` should throw if no argument has been passed', function* (done) { | ||
try { | ||
var result = yield r.expr(1).and().run(); | ||
} | ||
catch(e) { | ||
if (e.message === "`and` takes at least 1 argument, 0 provided after:\nr.expr(1)") { | ||
done(); | ||
} | ||
else { | ||
done(e); | ||
} | ||
} | ||
}) | ||
It('`and` should throw if no argument has been passed -- r.and', function* (done) { | ||
@@ -344,2 +334,6 @@ try { | ||
result = yield r.or(r.args([false, false, true])).run(); | ||
assert.equal(result, true); | ||
result = yield r.or(false, false, false, false).run(); | ||
@@ -353,15 +347,2 @@ assert.equal(result, false); | ||
}) | ||
It('`or` should throw if no argument has been passed', function* (done) { | ||
try { | ||
var result = yield r.expr(1).or().run(); | ||
} | ||
catch(e) { | ||
if (e.message === "`or` takes at least 1 argument, 0 provided after:\nr.expr(1)") { | ||
done(); | ||
} | ||
else { | ||
done(e); | ||
} | ||
} | ||
}) | ||
It('`or` should throw if no argument has been passed -- r.or', function* (done) { | ||
@@ -368,0 +349,0 @@ try { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
789815
23980