Skip to content

Commit b087210

Browse files
committed
test: use the new built-in iter method in Deno 1.15.x
1 parent da4d0c8 commit b087210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/helpers/io.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createHash, iter } from "../../dev_deps.ts";
1+
import { createHash } from "../../dev_deps.ts";
22
import type { SupportedAlgorithm } from "../../dev_deps.ts";
33

44
export const calculateFileHash = async (
@@ -7,7 +7,7 @@ export const calculateFileHash = async (
77
): Promise<string> => {
88
const hash = createHash(hashMethod);
99
const file = await Deno.open(filePath);
10-
for await (const chunk of iter(file)) {
10+
for await (const chunk of Deno.iter(file)) {
1111
hash.update(chunk);
1212
}
1313
Deno.close(file.rid);

0 commit comments

Comments
 (0)