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/testing.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/testing.js') diff --git a/test/testing.js b/test/testing.js index 3948556..ef21ba9 100644 --- a/test/testing.js +++ b/test/testing.js @@ -1,8 +1,9 @@ var path = require("path"); -var fs = require("fs"); -var promises = require("../lib/promises"); var _ = require("underscore"); +var fs = require("../lib/fs"); +var promises = require("../lib/promises"); + exports.testPath = testPath; exports.testData = testData; exports.createFakeDocxFile = createFakeDocxFile; @@ -15,7 +16,7 @@ function testPath(filename) { function testData(testDataPath) { var fullPath = testPath(testDataPath); - return promises.nfcall(fs.readFile, fullPath, "utf-8"); + return fs.readFile(fullPath, "utf-8"); } function createFakeDocxFile(files) { -- cgit v1.2.3