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

Commit

Permalink
.destroy() now calls back with null
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars-Magnus Skog committed Dec 15, 2018
1 parent 50062ad commit 1dfe434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/destroy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ test('test destroy non-existent parent directory', function (t) {

t.notOk(fs.existsSync(parent), 'parent does not exist before')

leveldown.destroy(location, function () {
t.is(arguments.length, 0, 'no arguments returned on callback')
leveldown.destroy(location, function (err) {
t.error(err, 'no error')
t.notOk(fs.existsSync(location), 'directory does not exist after')
})
})
Expand Down

0 comments on commit 1dfe434

Please sign in to comment.