diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-23 22:43:43 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-23 04:43:43 -0700 |
commit | c0492ef061afd5af2044d5952432d223615841a7 (patch) | |
tree | f7c0c30e4fd25868b4d3f8e1913d04a655cebc2a /js/util_test.ts | |
parent | de85f9443598ba5a75102be77f6f27a5cf0c0a9a (diff) |
Make Headers more idiomatic (#1062)
Diffstat (limited to 'js/util_test.ts')
-rw-r--r-- | js/util_test.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/js/util_test.ts b/js/util_test.ts deleted file mode 100644 index 0ca2f4433..000000000 --- a/js/util_test.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2018 the Deno authors. All rights reserved. MIT license. -import { test, assert, assertEqual } from "./test_util.ts"; -import { CreateIterableIterator } from "./util"; - -test(function CreateIterableIteratorSuccess() { - const list = [1, 2, 3, 4, 5]; - const listIterators = new CreateIterableIterator(list.values()); - let idx = 0; - for (const it of listIterators) { - assertEqual(it, list[idx++]); - } - const obj = { - a: "foo", - b: "bar", - c: "baz" - }; - const list1 = []; - const keys = Object.keys(obj); - keys.forEach(key => list1.push([key, obj[key]])); - const objectIterators = new CreateIterableIterator(list1.values()); - for (const it of objectIterators) { - const [key, value] = it; - assert(key in obj); - assertEqual(value, obj[key]); - } -}); |