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

Update encoding-down to the latest version 🚀 #629

Merged
merged 2 commits into from
Dec 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"concat-stream": "~2.0.0",
"coveralls": "~3.0.2",
"delayed": "~1.0.1",
"encoding-down": "^5.0.0",
"encoding-down": "^6.0.0",
"hallmark": "~0.1.0",
"level-community": "~3.0.0",
"memdown": "^3.0.0",
Expand Down
12 changes: 10 additions & 2 deletions test/batch-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,17 @@ buster.testCase('batch()', {

'test batch#put() with missing `value`': function () {
// value = undefined
this.batch.put('foo1')
assert.exception(this.batch.put.bind(this.batch, 'foo1'), function (err) {
if (err.name !== 'WriteError') { return false }
if (err.message !== 'value cannot be `null` or `undefined`') { return false }
return true
})

this.batch.put('foo1', null)
assert.exception(this.batch.put.bind(this.batch, 'foo1', null), function (err) {
if (err.name !== 'WriteError') { return false }
if (err.message !== 'value cannot be `null` or `undefined`') { return false }
return true
})
},

'test batch#put() with missing `key`': function () {
Expand Down