From dcd01dd02530df0e799eb4227087680ffeb80d74 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 24 Apr 2019 13:41:23 +0200 Subject: Eslint fixes (denoland/deno_std#356) Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc --- textproto/test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'textproto') diff --git a/textproto/test.ts b/textproto/test.ts index 5d1b64b11..5218d20f4 100644 --- a/textproto/test.ts +++ b/textproto/test.ts @@ -13,7 +13,7 @@ function reader(s: string): TextProtoReader { return new TextProtoReader(new BufReader(stringsReader(s))); } -test(async function textprotoReader() { +test(async function textprotoReader(): Promise { let r = reader("line1\nline2\n"); let [s, err] = await r.readLine(); assertEquals(s, "line1"); @@ -44,7 +44,7 @@ test(async function textprotoReadMIMEHeader() { }); */ -test(async function textprotoReadMIMEHeaderSingle() { +test(async function textprotoReadMIMEHeaderSingle(): Promise { let r = reader("Foo: bar\n\n"); let [m, err] = await r.readMIMEHeader(); assertEquals(m.get("Foo"), "bar"); @@ -53,7 +53,7 @@ test(async function textprotoReadMIMEHeaderSingle() { // Test that we read slightly-bogus MIME headers seen in the wild, // with spaces before colons, and spaces in keys. -test(async function textprotoReadMIMEHeaderNonCompliant() { +test(async function textprotoReadMIMEHeaderNonCompliant(): Promise { // Invalid HTTP response header as sent by an Axis security // camera: (this is handled by IE, Firefox, Chrome, curl, etc.) let r = reader( @@ -82,7 +82,7 @@ test(async function textprotoReadMIMEHeaderNonCompliant() { */ }); -test(async function textprotoAppend() { +test(async function textprotoAppend(): Promise { const enc = new TextEncoder(); const dec = new TextDecoder(); const u1 = enc.encode("Hello "); @@ -91,7 +91,7 @@ test(async function textprotoAppend() { assertEquals(dec.decode(joined), "Hello World"); }); -test(async function textprotoReadEmpty() { +test(async function textprotoReadEmpty(): Promise { let r = reader(""); let [, err] = await r.readMIMEHeader(); // Should not crash! -- cgit v1.2.3