abstract-leveldown
Advanced tools
Comparing version 2.0.1 to 2.0.3
@@ -166,3 +166,20 @@ var db | ||
} | ||
module.exports.atomic = function (test) { | ||
test('test multiple batch()', function (t) { | ||
t.plan(3) | ||
db.batch([ | ||
{ type: 'put', key: 'foobah1', value: 'bar1' } | ||
, { type: 'put', value: 'bar2' } | ||
, { type: 'put', key: 'foobah3', value: 'bar3' } | ||
], function (err) { | ||
t.ok(err, 'should error') | ||
db.get('foobah1', function (err) { | ||
t.ok(err, 'should not be found') | ||
}) | ||
db.get('foobah3', function (err) { | ||
t.ok(err, 'should not be found') | ||
}) | ||
}) | ||
}) | ||
} | ||
module.exports.tearDown = function (test, testCommon) { | ||
@@ -178,3 +195,4 @@ test('tearDown', function (t) { | ||
module.exports.batch(test) | ||
module.exports.atomic(test) | ||
module.exports.tearDown(test, testCommon) | ||
} |
{ | ||
"name": "abstract-leveldown", | ||
"description": "An abstract prototype matching the LevelDOWN API", | ||
"version": "2.0.1", | ||
"version": "2.0.3", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)", |
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
114901
2634