Skip to content

Commit

Permalink
Tidy serialization test order.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill authored and ralphtheninja committed Sep 4, 2017
1 parent 305ab90 commit d21cd76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.js
Expand Up @@ -75,11 +75,12 @@ test('test key/value serialization', function (t) {
t.equal(test._serializeKey(1), '1', '_serializeKey converts to string')
t.ok(test._serializeKey(buffer) === buffer, '_serializeKey returns Buffer as is')

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

var browser = !! process.browser
process.browser = false

t.equal(test._serializeValue(1), '1', '_serializeValue converts to string')
t.equal(test._serializeValue(null), '', '_serializeValue converts null to empty string')
t.ok(test._serializeValue(buffer) === buffer, '_serializeValue returns Buffer as is')

process.browser = true
Expand Down

0 comments on commit d21cd76

Please sign in to comment.