abstract-leveldown
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -345,2 +345,13 @@ var db | ||
// the default limit value from levelup is -1 | ||
test('test iterator with limit=-1 should iterate over whole database', function (t) { | ||
collectEntries(db.iterator({ keyAsBuffer: false, valueAsBuffer: false, limit: -1}), function (err, data) { | ||
t.notOk(err, 'no error') | ||
t.equal(data.length, sourceData.length, 'correct number of entries') | ||
var expected = sourceData.map(transformSource) | ||
t.deepEqual(data, expected) | ||
t.end() | ||
}) | ||
}) | ||
test('test iterator with end after limit', function (t) { | ||
@@ -347,0 +358,0 @@ collectEntries(db.iterator({ keyAsBuffer: false, valueAsBuffer: false, limit: 20, end: '50' }), function (err, data) { |
{ | ||
"name" : "abstract-leveldown" | ||
, "description" : "An abstract prototype matching the LevelDOWN API" | ||
, "version" : "0.7.2" | ||
, "version" : "0.7.3" | ||
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown" | ||
@@ -18,2 +18,3 @@ , "contributors" : [ | ||
, "Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)" | ||
, "Pedro Teixeira <pedro.teixeira@gmail.com> (https://github.com/pgte)" | ||
] | ||
@@ -40,2 +41,2 @@ , "authors" : [ | ||
, "license" : "MIT" | ||
} | ||
} |
@@ -134,2 +134,3 @@ # Abstract LevelDOWN [![Build Status](https://secure.travis-ci.org/rvagg/node-abstract-leveldown.png)](http://travis-ci.org/rvagg/node-abstract-leveldown) | ||
<tr><th align="left">Matteo Collina</th><td><a href="https://github.com/mcollina">GitHub/mcollina</a></td><td><a href="https://twitter.com/matteocollina">Twitter/@matteocollina</a></td></tr> | ||
<tr><th align="left">Pedro Teixeira</th><td><a href="https://github.com/pgte">GitHub/pgte</a></td><td><a href="https://twitter.com/pgte">Twitter/@pgte</a></td></tr> | ||
</tbody></table> | ||
@@ -136,0 +137,0 @@ |
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
87366
1942
143