abstract-leveldown
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -28,3 +28,3 @@ module.exports.setUp = function (test, testCommon) { | ||
module.exports.open = function (leveldown, test, testCommon) { | ||
test('test database open', function (t) { | ||
test('test database open, no options', function (t) { | ||
var db = leveldown(testCommon.location()) | ||
@@ -41,2 +41,16 @@ | ||
test('test database open, options', function (t) { | ||
var db = leveldown(testCommon.location()) | ||
// default createIfMissing=true, errorIfExists=false | ||
db.open({}, function (err) { | ||
t.notOk(err, 'no error') | ||
db.close(function () { | ||
t.end() | ||
}) | ||
}) | ||
}) | ||
} | ||
module.exports.openAdvanced = function (leveldown, test, testCommon) { | ||
test('test database open createIfMissing:false', function (t) { | ||
@@ -82,3 +96,4 @@ var db = leveldown(testCommon.location()) | ||
module.exports.open(leveldown, test, testCommon) | ||
module.exports.openAdvanced(leveldown, test, testCommon) | ||
module.exports.tearDown(test, testCommon) | ||
} |
{ | ||
"name" : "abstract-leveldown" | ||
, "description" : "An abstract prototype matching the LevelDOWN API" | ||
, "version" : "0.2.1" | ||
, "version" : "0.2.2" | ||
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown" | ||
@@ -6,0 +6,0 @@ , "contributors" : [ |
Sorry, the diff of this file is not supported yet
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
70818
1471