From d63a2e02246c0eb2ee6258b8fc32bbd0f9378567 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 19 Feb 2019 12:38:19 -0500 Subject: 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 --- io/readers_test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'io') 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() { -- cgit v1.2.3