summaryrefslogtreecommitdiff
path: root/cli/js/tests/files_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-25 00:05:48 +0200
committerGitHub <noreply@github.com>2020-04-25 00:05:48 +0200
commite9fa6b87cea7f564d69f2918b4811a570a770f73 (patch)
tree9e64954b29a53bc2de1d7f95f8ba6afc7c327155 /cli/js/tests/files_test.ts
parent824329f0daa4dfada11ccc4c15a7db6c1886c45f (diff)
stabilize Deno.iter() and Deno.iterSync() (#4890)
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;
}