From b39c7b2cf09297c49459e771c6e31e9b99f51523 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 23 Nov 2016 10:42:25 +0200 Subject: [PATCH] test(pack) tar: put: file: pullout -> pullout string --- test/rest/pack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rest/pack.js b/test/rest/pack.js index c7b57a9a..dfb93035 100644 --- a/test/rest/pack.js +++ b/test/rest/pack.js @@ -53,9 +53,9 @@ test('cloudcmd: rest: pack: tar: put: file', (t) => { const options = getPackOptions(port, name); put(options) - .then(_pullout) + .then(warp(_pullout, 'string')) .then(() => { - const file = fs.readFileSync(__dirname + '/../' + name); + const file = fs.readFileSync(__dirname + '/../' + name, 'utf8'); fs.unlinkSync(`${__dirname}/../${name}`); t.equal(Buffer.byteLength(file), Buffer.byteLength(fixture.tar), 'should create archive');