diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /textproto/test.ts | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'textproto/test.ts')
| -rw-r--r-- | textproto/test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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<void> { 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<void> { 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<void> { // 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<void> { 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<void> { let r = reader(""); let [, err] = await r.readMIMEHeader(); // Should not crash! |
