replace usage of Buffer.from with Buffer.alloc

This commit is contained in:
Shir Brass 2019-02-05 17:31:03 +02:00 committed by GitHub
parent 511f4249d1
commit b1609a1311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ describe('Proto message bytes serialize and deserialize', function() {
// This tests a bug that was fixed in Protobuf.js 6
it.skip('should deserialize packed or unpacked repeated', function() {
var expectedDeserialize = {
bytes_field: Buffer.from(''),
bytes_field: Buffer.alloc(''),
repeated_field: [10]
};
var packedSerialized = Buffer.from([0x12, 0x01, 0x0a]);