From 798904b0f2ed0c7284b67bba2f125f406b5850de Mon Sep 17 00:00:00 2001 From: Samrith Shankar Date: Fri, 20 Mar 2020 14:38:34 +0100 Subject: Add require-await lint rule (#4401) --- std/textproto/reader_test.ts | 3 ++- std/textproto/test.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'std/textproto') diff --git a/std/textproto/reader_test.ts b/std/textproto/reader_test.ts index 7aead064b..f0ae63894 100644 --- a/std/textproto/reader_test.ts +++ b/std/textproto/reader_test.ts @@ -21,9 +21,10 @@ function reader(s: string): TextProtoReader { test({ ignore: true, name: "[textproto] Reader : DotBytes", - async fn(): Promise { + fn(): Promise { const _input = "dotlines\r\n.foo\r\n..bar\n...baz\nquux\r\n\r\n.\r\nanot.her\r\n"; + return Promise.resolve(); } }); diff --git a/std/textproto/test.ts b/std/textproto/test.ts index 5b67bbf95..9a992a2cf 100644 --- a/std/textproto/test.ts +++ b/std/textproto/test.ts @@ -7,7 +7,7 @@ import { append } from "./mod.ts"; import { assertEquals } from "../testing/asserts.ts"; const { test } = Deno; -test(async function textprotoAppend(): Promise { +test(function textprotoAppend(): void { const enc = new TextEncoder(); const dec = new TextDecoder(); const u1 = enc.encode("Hello "); -- cgit v1.2.3