Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

update abstract-leveldown to v4 #28

Merged
merged 9 commits into from
Jan 28, 2018
32 changes: 18 additions & 14 deletions test/compact-range-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ test('setUp db', function (t) {
})

test('test compactRange() frees disk space after key deletion', function (t) {
var key1 = '000000';
var key2 = '000001';
var val1 = Buffer(64).fill(1);
var val2 = Buffer(64).fill(1);
var key1 = '000000'
var key2 = '000001'
var val1 = Buffer(64).fill(1)
var val2 = Buffer(64).fill(1)
db.put(key1, val1, function() {
db.put(key2, val2, function() {
db.compactRange(key1, key2, function() {
Expand All @@ -25,13 +25,17 @@ test('test compactRange() frees disk space after key deletion', function (t) {
db.compactRange(key1, key2, function() {
db.approximateSize('0', 'z', function(err, sizeAfterCompact) {
t.ok(sizeAfterCompact < sizeAfterPuts);
t.end();
});
});
});
});
});
});
});
});
});
t.end()
})
})
})
})
})
})
})
})
})

test('tearDown', function (t) {
db.close(testCommon.tearDown.bind(null, 2))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't ask. I think my fingers thought I was typing JSON.stringify with an indentation of 2 👼

})