diff options
Diffstat (limited to 'std/testing/bench_test.ts')
-rw-r--r-- | std/testing/bench_test.ts | 20 |
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); |