From 913ff1bd63f4f90bdbd36ffc8a609bd22e42abc5 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 23 Nov 2016 10:29:23 +0200 Subject: [PATCH] test(pack) buffer.length -> Buffer.byteLength --- test/rest/pack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rest/pack.js b/test/rest/pack.js index 6cd3daee..0b369dc6 100644 --- a/test/rest/pack.js +++ b/test/rest/pack.js @@ -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(); })