summaryrefslogtreecommitdiff
path: root/tests/unzip.tests.js
blob: 95aa26f73a87e0e1acac2458d29b57f46b57d901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var assert = require("assert");

var test = require("./testing").test;
var unzip = require("../lib/unzip");

describe("unzip", function() {
    test("unzip fails if given empty object", function() {
        return unzip.openZip({}).then(function() {
            assert.ok(false, "Expected failure");
        }, function(error) {
            assert.equal("Could not find file in options", error.message);
        });
    });
});