From d0eb179132c60a7c2513c9d19db03e3d5ca00c70 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Sat, 3 Oct 2020 13:19:11 -0700 Subject: docs: end sentences with a period in markdown (#7813) --- std/testing/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'std/testing') diff --git a/std/testing/README.md b/std/testing/README.md index 82351d94a..0b0e8afe9 100644 --- a/std/testing/README.md +++ b/std/testing/README.md @@ -34,8 +34,8 @@ pretty-printed diff of failing assertion. function will throw asynchronously. Also compares any errors thrown to an optional expected `Error` class and checks that the error `.message` includes an optional string. -- `unimplemented()` - Use this to stub out methods that will throw when invoked -- `unreachable()` - Used to assert unreachable code +- `unimplemented()` - Use this to stub out methods that will throw when invoked. +- `unreachable()` - Used to assert unreachable code. Basic usage: @@ -96,7 +96,7 @@ Deno.test("doesThrow", function (): void { ); }); -// This test will not pass +// This test will not pass. Deno.test("fails", function (): void { assertThrows((): void => { console.log("Hello world"); @@ -130,7 +130,7 @@ Deno.test("doesThrow", async function (): Promise { ); }); -// This test will not pass +// This test will not pass. Deno.test("fails", async function (): Promise { await assertThrowsAsync( async (): Promise => { @@ -199,7 +199,7 @@ runBenchmarks() console.log(results); }) .catch((error: Error) => { - // ... errors if benchmark was badly constructed + // ... errors if benchmark was badly constructed. }); ``` @@ -213,7 +213,7 @@ commandline. ```ts runBenchmarks({ silent: true }, (p: BenchmarkRunProgress) => { - // initial progress data + // initial progress data. if (p.state === ProgressState.BenchmarkingStart) { console.log( `Starting benchmarking. Queued: ${p.queued.length}, filtered: ${p.filtered}`, -- cgit v1.2.3