Skip to content

Commit

Permalink
add test for undefined serializing to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Sep 4, 2017
1 parent d21cd76 commit 7c5ab10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test.js
Expand Up @@ -76,6 +76,7 @@ test('test key/value serialization', function (t) {
t.ok(test._serializeKey(buffer) === buffer, '_serializeKey returns Buffer as is')

t.equal(test._serializeValue(null), '', '_serializeValue converts null to empty string')
t.equal(test._serializeValue(undefined), '', '_serializeValue converts undefined to empty string')

var browser = !! process.browser
process.browser = false
Expand Down

0 comments on commit 7c5ab10

Please sign in to comment.