aboutsummaryrefslogtreecommitdiff
path: root/test/unzip.tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unzip.tests.js')
-rw-r--r--test/unzip.tests.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unzip.tests.js b/test/unzip.tests.js
index 4e1bd61..f3a0fef 100644
--- a/test/unzip.tests.js
+++ b/test/unzip.tests.js
@@ -1,10 +1,9 @@
-var fs = require("fs");
var assert = require("assert");
var path = require("path");
var test = require("./test")(module);
+var fs = require("../lib/fs");
var unzip = require("../lib/unzip");
-var promises = require("../lib/promises");
test("unzip fails if given empty object", function() {
return unzip.openZip({}).then(function() {
@@ -25,7 +24,7 @@ test("unzip can open local zip file", function() {
test('unzip can open Buffer', function() {
var zipPath = path.join(__dirname, "test-data/hello.zip");
- return promises.nfcall(fs.readFile, zipPath)
+ return fs.readFile(zipPath)
.then(function(buffer) {
return unzip.openZip({buffer: buffer});
})