From 851728e46d092ffba323ea2f8b1dd3b3f5949d06 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 22 Nov 2016 16:22:39 +0200 Subject: [PATCH] test(pack) compare -> equals --- test/fixture/pack.tar.gz | Bin 116 -> 112 bytes test/rest/pack.js | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/fixture/pack.tar.gz b/test/fixture/pack.tar.gz index 9cf8925a04562d5ff2d54c7d0793e60caaa7f2f4..33e11c9355cd17c2785c1f8172209ed416f13569 100644 GIT binary patch delta 75 zcmXRZu#xZPU;qPVZ4aMwX$uSufWX)|kl|9>vt?{2OhhDRX-G&(OU#g%J!|%?8JZFj aQW8><%uh4l8VF2u(BZhQrTU!#XaoQb9~EK% delta 58 zcmXRY5tZ-eU;qPVZ4aMw*R)q^BrZ^#C@3i;HGB4KX-x?UsTtC<8J}jp)R35Hqr;)b K7Rtu})Bym%lMd7X diff --git a/test/rest/pack.js b/test/rest/pack.js index 0a368079..1c33aa02 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.ok(fixture.tar.compare(pack), 'should pack data'); + t.equal(fixture.tar.length, pack.length, 'should pack data'); t.end(); after(); }) @@ -58,7 +58,7 @@ test('cloudcmd: rest: pack: tar: put: file', (t) => { const file = fs.readFileSync(__dirname + '/../' + name); fs.unlinkSync(`${__dirname}/../${name}`); - t.ok(fixture.tar.compare(file), 'should create archive'); + t.ok(fixture.tar.equals(file), 'should create archive'); t.end(); after(); @@ -118,7 +118,7 @@ test('cloudcmd: rest: pack: zip: get', (t) => { get(`http://localhost:${port}/api/v1/pack/fixture/pack`) .then(_pullout) .then((pack) => { - t.ok(fixture.zip.compare(pack), 'should pack data'); + t.equal(pack.length, fixture.zip.length, 'should pack data'); t.end(); after(); }) @@ -140,7 +140,7 @@ test('cloudcmd: rest: pack: zip: put: file', (t) => { const file = fs.readFileSync(__dirname + '/../' + name); fs.unlinkSync(`${__dirname}/../${name}`); - t.ok(fixture.zip.compare(file), 'should create archive'); + t.equal(fixture.zip.length, file.length, 'should create archive'); t.end(); after();