Skip to content

Commit 3dea518

Browse files
committed
fix tests
1 parent ca16fed commit 3dea518

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

test/commands/zip.test.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { on } from "events";
44
import { existsSync, rmSync } from "fs";
55
import { stat } from "fs/promises";
66
import { suite, test } from "node:test";
7-
import { asyncGeneratorToArray } from "../utils/array.mjs";
87

98
suite("Testing zip command", async () => {
109
await test("Getting a empty zip buffer", async (t) => {
@@ -98,7 +97,7 @@ suite("Testing zip command", async () => {
9897
* @prop {string} out
9998
*/
10099
async function executeZipCommand(glob, options) {
101-
return Buffer.concat(await asyncGeneratorToArray(zipGenerator(glob, options)));
100+
return Buffer.concat(await Array.fromAsync(zipGenerator(glob, options)));
102101
}
103102

104103
/**

test/utils/array.mjs

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)