summaryrefslogtreecommitdiff
path: root/std/textproto
diff options
context:
space:
mode:
authorSamrith Shankar <samrith-s@users.noreply.github.com>2020-03-20 14:38:34 +0100
committerGitHub <noreply@github.com>2020-03-20 09:38:34 -0400
commit798904b0f2ed0c7284b67bba2f125f406b5850de (patch)
tree5aba8d35aa8984aa778c894258bcaed56f1ce17c /std/textproto
parent35f6e2e45ddb96524a6bdf54b0a6155caa88d5e0 (diff)
Add require-await lint rule (#4401)
Diffstat (limited to 'std/textproto')
-rw-r--r--std/textproto/reader_test.ts3
-rw-r--r--std/textproto/test.ts2
2 files changed, 3 insertions, 2 deletions
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<void> {
+ fn(): Promise<void> {
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<void> {
+test(function textprotoAppend(): void {
const enc = new TextEncoder();
const dec = new TextDecoder();
const u1 = enc.encode("Hello ");