diff options
author | Trivikram Kamat <16024985+trivikr@users.noreply.github.com> | 2020-10-03 13:19:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 07:19:11 +1100 |
commit | d0eb179132c60a7c2513c9d19db03e3d5ca00c70 (patch) | |
tree | 627339e0dc2212ed861184d46b6af31605224d24 /std/testing/README.md | |
parent | 391eed42f41bd277fff936192b474bfd52eaa1a0 (diff) |
docs: end sentences with a period in markdown (#7813)
Diffstat (limited to 'std/testing/README.md')
-rw-r--r-- | std/testing/README.md | 12 |
1 files changed, 6 insertions, 6 deletions
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<void> { ); }); -// This test will not pass +// This test will not pass. Deno.test("fails", async function (): Promise<void> { await assertThrowsAsync( async (): Promise<void> => { @@ -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}`, |