summaryrefslogtreecommitdiff
path: root/io/readers_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-02-19 12:38:19 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-02-19 13:18:41 -0500
commitd63a2e02246c0eb2ee6258b8fc32bbd0f9378567 (patch)
tree81b4019b47cc645887d738664578d2b2ff1facd3 /io/readers_test.ts
parenta5a48ce84d255c8af57feb4b6a7f7ef607d16ee0 (diff)
Revert "Redesign of http server module (denoland/deno_std#188)"
We need to consider the API changes here more carefully. This reverts commit da188a7d30cbf71317b46015ee63a06437c09aeb. and commit 8569f15207bdc12c2c8ca81e9d020955be54918b. Original: https://github.com/denoland/deno_std/commit/57c9176b19bf4f4580466e088c249cbe9b145119
Diffstat (limited to 'io/readers_test.ts')
-rw-r--r--io/readers_test.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/io/readers_test.ts b/io/readers_test.ts
index add59877d..0bc8ca36a 100644
--- a/io/readers_test.ts
+++ b/io/readers_test.ts
@@ -7,11 +7,9 @@ import { decode } from "../strings/strings.ts";
test(async function ioStringReader() {
const r = new StringReader("abcdef");
- const buf = new Uint8Array(6);
- const { nread, eof } = await r.read(buf);
+ const { nread, eof } = await r.read(new Uint8Array(6));
assert.equal(nread, 6);
assert.equal(eof, true);
- assert.equal(decode(buf), "abcdef");
});
test(async function ioStringReader() {