summaryrefslogtreecommitdiff
path: root/cli/tests/unit/streams_deprecated.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/streams_deprecated.ts')
-rw-r--r--cli/tests/unit/streams_deprecated.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/tests/unit/streams_deprecated.ts b/cli/tests/unit/streams_deprecated.ts
new file mode 100644
index 000000000..77750072c
--- /dev/null
+++ b/cli/tests/unit/streams_deprecated.ts
@@ -0,0 +1,16 @@
+// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+import { assertEquals, unitTest } from "./test_util.ts";
+
+unitTest(async function symlinkSyncPerm() {
+ const rs = new ReadableStream<string>({
+ start(controller) {
+ controller.enqueue("hello ");
+ controller.enqueue("deno");
+ controller.close();
+ },
+ });
+
+ for await (const chunk of rs.getIterator()) {
+ assertEquals(typeof chunk, "string");
+ }
+});