summaryrefslogtreecommitdiff
path: root/cli/js/tests/files_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/tests/files_test.ts')
-rw-r--r--cli/js/tests/files_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/tests/files_test.ts b/cli/js/tests/files_test.ts
index f68e5def4..1e2c06082 100644
--- a/cli/js/tests/files_test.ts
+++ b/cli/js/tests/files_test.ts
@@ -46,7 +46,7 @@ unitTest(
let totalSize = 0;
let iterations = 0;
- for await (const buf of Deno.iter(file, 6)) {
+ for await (const buf of Deno.iter(file, { bufSize: 6 })) {
totalSize += buf.byteLength;
iterations += 1;
}
@@ -78,7 +78,7 @@ unitTest(
let totalSize = 0;
let iterations = 0;
- for (const buf of Deno.iterSync(file, 6)) {
+ for (const buf of Deno.iterSync(file, { bufSize: 6 })) {
totalSize += buf.byteLength;
iterations += 1;
}