summaryrefslogtreecommitdiff
path: root/examples/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 /examples/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 'examples/test.ts')
-rw-r--r--examples/test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/test.ts b/examples/test.ts
index a8f4e3548..17d19a312 100644
--- a/examples/test.ts
+++ b/examples/test.ts
@@ -4,16 +4,16 @@ import { test } from "../testing/mod.ts";
import { assertEquals } from "../testing/asserts.ts";
/** Example of how to do basic tests */
-test(function t1() {
+test(function t1(): void {
assertEquals("hello", "hello");
});
-test(function t2() {
+test(function t2(): void {
assertEquals("world", "world");
});
/** A more complicated test that runs a subprocess. */
-test(async function catSmoke() {
+test(async function catSmoke(): Promise<void> {
const p = run({
args: ["deno", "--allow-read", "examples/cat.ts", "README.md"],
stdout: "piped"