Skip to content

Commit

Permalink
fix utf-8 encoding returning buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Jan 26, 2017
1 parent 5d20d16 commit c7823be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/kv.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ test('decode value', function(t){
});
t.equal(buf.toString(), 'hey');

buf = codec.decodeValue(new Buffer('hey'), {
valueEncoding: 'utf8'
});
t.equal(buf, 'hey');

t.end();
});

Expand Down

0 comments on commit c7823be

Please sign in to comment.