test(pack) buffer.length -> Buffer.byteLength

This commit is contained in:
coderaiser 2016-11-23 10:29:23 +02:00
parent 5fdf235ae2
commit 913ff1bd63

View file

@ -36,7 +36,7 @@ test('cloudcmd: rest: pack: tar: get', (t) => {
get(`http://localhost:${port}/api/v1/pack/fixture/pack`)
.then(_pullout)
.then((pack) => {
t.equal(fixture.tar.length, pack.length, 'should pack data');
t.equal(Buffer.byteLength(fixture.tar), Buffer.byteLength(pack), 'should pack data');
t.end();
after();
})