Skip to content

Commit

Permalink
Fix open() test (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Oct 3, 2019
1 parent 42eca35 commit c488d12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"encoding-down": "^6.2.0",
"inherits": "^2.0.3",
"level-option-wrap": "^1.1.0",
"levelup": "^4.2.0",
"levelup": "^4.3.1",
"reachdown": "^1.0.0"
},
"devDependencies": {
Expand Down
6 changes: 1 addition & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ test('SubDb main function', function (t) {
}
}

subdb(mockdb, 'test')

// Awkward: we don't pass a callback to levelup() so levelup goes
// into "promise mode" which we can't catch properly
process.once('unhandledRejection', (err) => {
subdb(mockdb, 'test').on('error', (err) => {
t.is(err.message, 'error from underlying store')
})
})
Expand Down

0 comments on commit c488d12

Please sign in to comment.