[Pkg-javascript-commits] [node-leveldown] 163/492: fix createIfMissing tests for defaults change
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.
commit aa36f476d1050bb0ae58326ebc050beb5879b1ed
Author: Rod Vagg <rod at vagg.org>
Date: Wed Jan 9 13:17:40 2013 +1100
fix createIfMissing tests for defaults change
---
test/simple-test.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/simple-test.js b/test/simple-test.js
index 2bd3f1a..4304891 100644
--- a/test/simple-test.js
+++ b/test/simple-test.js
@@ -35,7 +35,7 @@ buster.testCase('Basic API', {
levelup(location, function (err, db) { // no options object
refute(err)
assert.isObject(db)
- assert.isFalse(db._options.createIfMissing)
+ assert.isTrue(db._options.createIfMissing)
assert.isFalse(db._options.errorIfExists)
assert.equals(db._location, location)
@@ -89,7 +89,7 @@ buster.testCase('Basic API', {
}
, 'open() with !createIfMissing expects error': function (done) {
- levelup(this.cleanupDirs[0] = common.nextLocation(), function (err, db) {
+ levelup(this.cleanupDirs[0] = common.nextLocation(), { createIfMissing: false }, function (err, db) {
assert(err)
refute(db)
assert.isInstanceOf(err, Error)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list