Skip to content

Commit 945089c

Browse files
committed
add more enums
1 parent 901b3bd commit 945089c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎resources/shared/benchmark.mjs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class AsyncBenchmarkStep extends BenchmarkStep {
2828
}
2929
}
3030

31-
export const BenchmarkSuiteType = Object.freeze({
31+
export const BENCHMARK_SUITE_TYPE = Object.freeze({
3232
__proto__: null,
3333
sync: "sync",
3434
async: "async",
@@ -40,11 +40,11 @@ export const BenchmarkSuiteType = Object.freeze({
4040
* A single test suite that contains one or more test steps.
4141
*/
4242
export class BenchmarkSuite {
43-
constructor(name, tests, type = BenchmarkSuiteType.sync) {
43+
constructor(name, tests, type = BENCHMARK_SUITE_TYPE.sync) {
4444
this.name = name;
4545
this.tests = tests;
4646
this.type = type;
47-
console.assert(this.type in BenchmarkSuiteType);
47+
console.assert(this.type in BENCHMARK_SUITE_TYPE);
4848
}
4949

5050
record(_test, syncTime, asyncTime) {
@@ -90,7 +90,7 @@ export class BenchmarkSuite {
9090

9191
export class AsyncBenchmarkSuite extends BenchmarkSuite {
9292
constructor(name, tests) {
93-
super(name, tests, BenchmarkSuiteType.async);
93+
super(name, tests, BENCHMARK_SUITE_TYPE.async);
9494
}
9595
}
9696

@@ -144,7 +144,7 @@ export class BenchmarkConnector {
144144
const { name } = message.payload;
145145
const suite = this.suites[name];
146146
if (!suite)
147-
console.error(`Suite with the name of "${name}" not found!`);
147+
console.error(`Suite with the name of "${.name}" not found!`);
148148
const onProgress = (test) => this._sendMessage(MESSAGE_TYPE.stepComplete, { name: this.name, test });
149149
const { result } = await suite.runAndRecord(params, onProgress);
150150
this._sendMessage(MESSAGE_TYPE.suiteComplete, { result });

0 commit comments

Comments
 (0)