summaryrefslogtreecommitdiff
path: root/io/readers_test.ts
diff options
context:
space:
mode:
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() {