summaryrefslogtreecommitdiff
path: root/std/testing/bench_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /std/testing/bench_test.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/testing/bench_test.ts')
-rw-r--r--std/testing/bench_test.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/std/testing/bench_test.ts b/std/testing/bench_test.ts
index b6d64ab89..97a923ac2 100644
--- a/std/testing/bench_test.ts
+++ b/std/testing/bench_test.ts
@@ -46,8 +46,8 @@ Deno.test({
async (denoland: string): Promise<void> => {
const r = await fetch(denoland);
await r.text();
- }
- )
+ },
+ ),
);
b.stop();
});
@@ -73,7 +73,7 @@ Deno.test({
assertEquals(benchResult.results.length, 5);
const resultWithSingleRunsFiltered = benchResult.results.filter(
- ({ name }) => name === "forDecrementX1e9"
+ ({ name }) => name === "forDecrementX1e9",
);
assertEquals(resultWithSingleRunsFiltered.length, 1);
@@ -85,7 +85,7 @@ Deno.test({
assertEquals(resultWithSingleRuns.measuredRunsMs.length, 1);
const resultWithMultipleRunsFiltered = benchResult.results.filter(
- ({ name }) => name === "runs100ForIncrementX1e6"
+ ({ name }) => name === "runs100ForIncrementX1e6",
);
assertEquals(resultWithMultipleRunsFiltered.length, 1);
@@ -108,7 +108,7 @@ Deno.test({
bench(() => {});
},
Error,
- "The benchmark function must not be anonymous"
+ "The benchmark function must not be anonymous",
);
},
});
@@ -125,7 +125,7 @@ Deno.test({
await runBenchmarks({ only: /benchWithoutStop/, silent: true });
},
BenchmarkRunError,
- "The benchmark timer's stop method must be called"
+ "The benchmark timer's stop method must be called",
);
},
});
@@ -142,7 +142,7 @@ Deno.test({
await runBenchmarks({ only: /benchWithoutStart/, silent: true });
},
BenchmarkRunError,
- "The benchmark timer's start method must be called"
+ "The benchmark timer's start method must be called",
);
},
});
@@ -160,7 +160,7 @@ Deno.test({
await runBenchmarks({ only: /benchStopBeforeStart/, silent: true });
},
BenchmarkRunError,
- "The benchmark timer's start method must be called before its stop method"
+ "The benchmark timer's start method must be called before its stop method",
);
},
});
@@ -249,7 +249,7 @@ Deno.test({
{ skip: /skip/, silent: true },
(progress) => {
progressCallbacks.push(progress);
- }
+ },
);
let pc = 0;
@@ -322,7 +322,7 @@ Deno.test({
assertEquals(progress.results.length, 2);
assert(!!progress.results.find(({ name }) => name == "single"));
const resultOfMultiple = progress.results.filter(
- ({ name }) => name == "multiple"
+ ({ name }) => name == "multiple",
);
assertEquals(resultOfMultiple.length, 1);
assert(!!resultOfMultiple[0].measuredRunsMs);