From f330fd7a71fafdcd9bc18fb7d4112a802b62f9a5 Mon Sep 17 00:00:00 2001 From: Quentin Rossetti Date: Tue, 19 Aug 2014 11:10:27 +0000 Subject: [PATCH] Add test archive --- test/index.js | 12 ++++++------ test/zip.7z | Bin 0 -> 215 bytes 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 test/zip.7z diff --git a/test/index.js b/test/index.js index 2691e1e..86974b7 100644 --- a/test/index.js +++ b/test/index.js @@ -7,7 +7,7 @@ var fs = require('fs'); describe('`test` function', function(){ it('should get an error when 7z gets an error', function (done) { - sevenzip.test('test/resource/nothere.7z') + sevenzip.test('test/nothere.7z') .then(null, function (err) { expect(err.message.substr(0, 14)).to.eql('Command failed'); done(); @@ -15,7 +15,7 @@ describe('`test` function', function(){ }); it('should get a list of files and directories', function (done) { - sevenzip.test('test/resource/resource.7z') + sevenzip.test('test/zip.7z') .then(function (files) { expect(files.length).to.be.at.least(6); done(); @@ -23,7 +23,7 @@ describe('`test` function', function(){ }); it('should be usable as a non-promise function', function (done) { - sevenzip.testNode('test/resource/resource.7z', function (err, files) { + sevenzip.testNode('test/zip.7z', function (err, files) { expect(files).to.be.an('array'); done(); }); @@ -34,7 +34,7 @@ describe('`test` function', function(){ describe('`extract` function', function() { it('should get an error when 7z gets an error', function (done) { - sevenzip.extract('test/resource/nothere.7z', '.tmp/extract') + sevenzip.extract('test/nothere.7z', '.tmp/extract') .then(null, function (err) { expect(err.message.substr(0, 14)).to.eql('Command failed'); done(); @@ -42,7 +42,7 @@ describe('`extract` function', function() { }); it('should get a list of files and directories', function (done) { - sevenzip.extract('test/resource/resource.7z', '.tmp/extract') + sevenzip.extract('test/zip.7z', '.tmp/extract') .then(function (files) { var t = path.resolve('.tmp/extract', files[0]); expect(fs.existsSync(t)).to.eql(true); @@ -53,7 +53,7 @@ describe('`extract` function', function() { it('should be usable as a non-promise function', function (done) { sevenzip.extractNode( - 'test/resource/resource.7z', + 'test/zip.7z', '.tmp/extract', function (err, files) { expect(files).to.be.an('array'); diff --git a/test/zip.7z b/test/zip.7z new file mode 100644 index 0000000000000000000000000000000000000000..c0db9724d8047bae83344b3c436641acce09e48c GIT binary patch literal 215 zcmXr7+Ou9=hJksS%yjjs3=p6MrC-!^2{9PXJ|%hU?b51*TxpPSqcQtB{&UA;8acJr zT}?{4?Z0HjB@WFUQ$HUu{h(WG`9pGf&zqpP-(}O{R>b|yTkC7>7`CnYde@c(YxY^Z zn{{iG$^{#p$(Fh6gDZ75y3d**9y0a%{r7M8KN0x9-ZS^uzR8S+=eI4(`+d7ZnZc)X z)y4d8@`a~*qps+d&fZqO@I~=!-Yd`B7{uB57&#l-8Q8fQ85otB85vn)83Y&@cp7!M M7z3s>WH2xQ0J_;%UjP6A literal 0 HcmV?d00001