Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni committed Jan 7, 2025
1 parent 4cdde7b commit 60a3e22
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
3 changes: 1 addition & 2 deletions resources/shared/benchmark.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ export class BenchmarkSuite {
const result = await test.runAndRecord(params, this, test, this.record);
measuredValues.tests[test.name] = result;
measuredValues.total += result.total;
measuredValues.totalPrepare += result.
onProgress?.(test.name);
measuredValues.totalPrepare += result.onProgress?.(test.name);
}

performance.mark(suiteEndLabel);
Expand Down
1 change: 0 additions & 1 deletion tests/helper.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import commandLineUsage from "command-line-usage";
import commandLineArgs from "command-line-args";
import serve from "./server.mjs";
Expand Down
10 changes: 1 addition & 9 deletions tests/run-end2end.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function validateMetric(name, metric) {
assert(metric.mean >= 0);
}


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

async function testDeveloperMode() {
const params = [
"developerMode",
"iterationCount=1",
"warmupBeforeSync=2",
"waitBeforeSync=2",
"shuffleSeed=123",
"suites=Perf-Dashboard"
];
const params = ["developerMode", "iterationCount=1", "warmupBeforeSync=2", "waitBeforeSync=2", "shuffleSeed=123", "suites=Perf-Dashboard"];
const metrics = await testPage(`index.html?${params.join("&")}`);
Suites.forEach((suite) => {
if (suite.name === "Perf-Dashboard") {
Expand Down
2 changes: 1 addition & 1 deletion tests/run-unittests.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env node
/* eslint-disable-next-line no-unused-vars */
import assert from "assert";
import { driver, PORT, stop} from "./helper.mjs";
import { driver, PORT, stop } from "./helper.mjs";

function printTree(node) {
console.log(node.title);
Expand Down

0 comments on commit 60a3e22

Please sign in to comment.