Skip to content

Commit

Permalink
add compactRange doc link to index in README, improve test assertion …
Browse files Browse the repository at this point in the history
…in compactRange
  • Loading branch information
Gordon Hall committed Feb 5, 2017
1 parent 460cea7 commit af08992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Tested & supported platforms
* <a href="#leveldown_del"><code><b>leveldown#del()</b></code></a>
* <a href="#leveldown_batch"><code><b>leveldown#batch()</b></code></a>
* <a href="#leveldown_approximateSize"><code><b>leveldown#approximateSize()</b></code></a>
* <a href="#leveldown_compactRange"><code><b>leveldown#compactRange()</b></code></a>
* <a href="#leveldown_getProperty"><code><b>leveldown#getProperty()</b></code></a>
* <a href="#leveldown_iterator"><code><b>leveldown#iterator()</b></code></a>
* <a href="#iterator_next"><code><b>iterator#next()</b></code></a>
Expand Down
2 changes: 1 addition & 1 deletion test/compact-range-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test('test compactRange() frees disk space after key deletion', function (t) {
db.del(key2, function() {
db.compactRange(key1, key2, function() {
db.approximateSize('0', 'z', function(err, sizeAfterCompact) {
t.notEqual(sizeAfterCompact, sizeAfterPuts);
t.ok(sizeAfterCompact < sizeAfterPuts);
t.end();
});
});
Expand Down

0 comments on commit af08992

Please sign in to comment.