Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions params.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class Params {
for (const paramKey of ["tag", "tags", "test", "tests"])
this.testList = this._parseTestListParam(sourceParams, paramKey);

this.testIterationCount = this._parseIntParam(sourceParams, "iterationCount", 1);
this.testWorstCaseCount = this._parseIntParam(sourceParams, "worstCaseCount", 1);
this.testIterationCount = this._parseIntParam(sourceParams, "testIterationCount", 1);
this.testWorstCaseCount = this._parseIntParam(sourceParams, "testWorstCaseCount", 1);

const unused = Array.from(sourceParams.keys());
if (unused.length > 0)
Expand Down Expand Up @@ -128,7 +128,7 @@ class Params {
const number = Number(value);
if (!Number.isInteger(number) && errorMessage)
throw new Error(`Invalid ${errorMessage} param: '${value}', expected int.`);
return parseInt(number);
return number;
}

get isDefault() {
Expand Down
Loading