Skip to content

Commit

Permalink
Add test for unzipAndExtract (Fix #4).
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Sep 22, 2015
1 parent 9781aec commit 6d4254a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/test-unzipAndExtract.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';
var should = require('should');
var uAE = require('../src/unzipAndExtract');

var randomId = Math.random().toString(36).slice(2);

describe('unzipAndExtract module', function() {
it('Should export the expected type', function() {
uAE.should.be.instanceOf(Function);
});
it('Should do as expected when not finding an archive', function(done) {
uAE({
ip: randomId,
downloadDir: '/etc'
}, function(err) {
should(err).not.equal(undefined);
done();
});
});
});

0 comments on commit 6d4254a

Please sign in to comment.