Skip to content

Commit

Permalink
Merge pull request #122 from Level/fix-browser-tests
Browse files Browse the repository at this point in the history
relax tests for serializing object in chained-batch-test.js
  • Loading branch information
ralphtheninja committed Sep 5, 2017
2 parents dcc278d + a68d0ee commit 3819659
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions abstract/chained-batch-test.js
Expand Up @@ -182,13 +182,11 @@ module.exports.args = function (test) {
.put({ foo: 'bar' }, { beep: 'boop' })
.del({ bar: 'baz' })
ops.forEach(function (op) {
if (Buffer.isBuffer(op.key)) op.key = String(op.key)
if (Buffer.isBuffer(op.value)) op.value = String(op.value)
t.ok(op.key, '.key is set for .put and .del operations')
if (op.type === 'put') {
t.ok(op.value, '.value is set for .put operation')
}
})
t.deepEqual(ops, [
{ type: 'put', key: '[object Object]', value: '[object Object]' }
, { type: 'del', key: '[object Object]' }
])
t.end()
})

Expand Down

0 comments on commit 3819659

Please sign in to comment.