summaryrefslogtreecommitdiff
path: root/io/readers_test.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-04-24 13:41:23 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-04-24 07:41:22 -0400
commitdcd01dd02530df0e799eb4227087680ffeb80d74 (patch)
tree8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /io/readers_test.ts
parente1f7a60bb326f8299f339635c0738d28431afa0a (diff)
Eslint fixes (denoland/deno_std#356)
Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'io/readers_test.ts')
-rw-r--r--io/readers_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/io/readers_test.ts b/io/readers_test.ts
index 35616ace2..a3806fbe2 100644
--- a/io/readers_test.ts
+++ b/io/readers_test.ts
@@ -6,14 +6,14 @@ import { StringWriter } from "./writers.ts";
import { copyN } from "./ioutil.ts";
import { decode } from "../strings/strings.ts";
-test(async function ioStringReader() {
+test(async function ioStringReader(): Promise<void> {
const r = new StringReader("abcdef");
const { nread, eof } = await r.read(new Uint8Array(6));
assertEquals(nread, 6);
assertEquals(eof, true);
});
-test(async function ioStringReader() {
+test(async function ioStringReader(): Promise<void> {
const r = new StringReader("abcdef");
const buf = new Uint8Array(3);
let res1 = await r.read(buf);
@@ -26,7 +26,7 @@ test(async function ioStringReader() {
assertEquals(decode(buf), "def");
});
-test(async function ioMultiReader() {
+test(async function ioMultiReader(): Promise<void> {
const r = new MultiReader(new StringReader("abc"), new StringReader("def"));
const w = new StringWriter();
const n = await copyN(w, r, 4);