From 36d98ebbd6463899737008eaa5147449c9d8e7f2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 16 Sep 2026 23:08:58 +0100 Subject: Prefer fs.promises to promisfying fs functions --- test/unzip.tests.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/unzip.tests.js') 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}); }) -- cgit v1.2.3