From 343333e006e3d05427872aba9e4a73087049a546 Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Sun, 18 Feb 2024 20:03:05 -0500 Subject: [PATCH] can't have nice things --- test/test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index bd2c0e9..15b7aa1 100644 --- a/test/test.js +++ b/test/test.js @@ -367,6 +367,11 @@ pend.go(function(cb) { var args = parametersToTest[f]; var script = path.join(examplesDir, f); + if (f === "unzip.js" && typeof fs.rmSync !== "function") { + console.log("WARNING: skipping examples/unzip.js tests for node <14"); + continue; + } + args.forEach(function(arg) { var args = [path.resolve(script)]; var options = { @@ -380,7 +385,6 @@ pend.go(function(cb) { } else { testId = `examples/${f}: `; } - process.stdout.write(testId); // Handle special cases. if (f === "dump.js" && /traditional-encryption/.exec(path.basename(arg))) { @@ -393,6 +397,7 @@ pend.go(function(cb) { options.cwd = tmpDir; } + process.stdout.write(testId); var {status, error} = child_process.spawnSync("node", args, options); if (status) error = new Error("child process return exit code " + status); if (error) throw error;