Skip to content

Commit 60a3e22

Browse files
committed
formatting
1 parent 4cdde7b commit 60a3e22

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

resources/shared/benchmark.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ export class BenchmarkSuite {
5555
const result = await test.runAndRecord(params, this, test, this.record);
5656
measuredValues.tests[test.name] = result;
5757
measuredValues.total += result.total;
58-
measuredValues.totalPrepare += result.
59-
onProgress?.(test.name);
58+
measuredValues.totalPrepare += result.onProgress?.(test.name);
6059
}
6160

6261
performance.mark(suiteEndLabel);

tests/helper.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import commandLineUsage from "command-line-usage";
32
import commandLineArgs from "command-line-args";
43
import serve from "./server.mjs";

tests/run-end2end.mjs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function validateMetric(name, metric) {
3535
assert(metric.mean >= 0);
3636
}
3737

38-
3938
async function testIterations() {
4039
const metrics = await testPage("index.html?iterationCount=3");
4140
Suites.forEach((suite) => {
@@ -60,14 +59,7 @@ async function testAll() {
6059
}
6160

6261
async function testDeveloperMode() {
63-
const params = [
64-
"developerMode",
65-
"iterationCount=1",
66-
"warmupBeforeSync=2",
67-
"waitBeforeSync=2",
68-
"shuffleSeed=123",
69-
"suites=Perf-Dashboard"
70-
];
62+
const params = ["developerMode", "iterationCount=1", "warmupBeforeSync=2", "waitBeforeSync=2", "shuffleSeed=123", "suites=Perf-Dashboard"];
7163
const metrics = await testPage(`index.html?${params.join("&")}`);
7264
Suites.forEach((suite) => {
7365
if (suite.name === "Perf-Dashboard") {

tests/run-unittests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env node
22
/* eslint-disable-next-line no-unused-vars */
33
import assert from "assert";
4-
import { driver, PORT, stop} from "./helper.mjs";
4+
import { driver, PORT, stop } from "./helper.mjs";
55

66
function printTree(node) {
77
console.log(node.title);

0 commit comments

Comments
 (0)