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

Commit

Permalink
Bump abstract-leveldown, level-codec and level-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Apr 9, 2021
1 parent eb35276 commit 83556fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"prepublishOnly": "npm run dependency-check"
},
"dependencies": {
"abstract-leveldown": "^6.2.1",
"abstract-leveldown": "^7.0.0",
"inherits": "^2.0.3",
"level-codec": "^9.0.0",
"level-errors": "^2.0.0"
"level-codec": "^10.0.0",
"level-errors": "^3.0.0"
},
"devDependencies": {
"coveralls": "^3.0.2",
Expand Down
6 changes: 2 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ test('iterator skips values if options.values is false', function (t) {
})

test('iterator encodes range options', function (t) {
t.plan(7)
t.plan(5)

const keyEncoding = {
encode: function (key) {
Expand All @@ -415,8 +415,6 @@ test('iterator encodes range options', function (t) {

const db = encdown({
iterator: function (options) {
t.is(options.start, 'encoded_1')
t.is(options.end, 'encoded_2')
t.is(options.gt, 'encoded_3')
t.is(options.gte, 'encoded_4')
t.is(options.lt, 'encoded_5')
Expand All @@ -425,7 +423,7 @@ test('iterator encodes range options', function (t) {
}
}, { keyEncoding })

db.iterator({ start: 1, end: 2, gt: 3, gte: 4, lt: 5, lte: 6, foo: 7 })
db.iterator({ gt: 3, gte: 4, lt: 5, lte: 6, foo: 7 })
})

test('iterator does not strip nullish range options', function (t) {
Expand Down

0 comments on commit 83556fd

Please sign in to comment.