chore(html): remove unused map (#26415)

This commit is contained in:
Yury Semikhatsky 2023-08-10 13:02:35 -07:00 committed by GitHub
parent ad9d20311a
commit 00c8dd7ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,6 @@ export function startHtmlReportServer(folder: string): HttpServer {
class HtmlBuilder { class HtmlBuilder {
private _config: FullConfig; private _config: FullConfig;
private _reportFolder: string; private _reportFolder: string;
private _testPath = new Map<string, string[]>();
private _stepsInFile = new MultiMap<string, TestStep>(); private _stepsInFile = new MultiMap<string, TestStep>();
private _dataZipFile: ZipFile; private _dataZipFile: ZipFile;
private _hasTraces = false; private _hasTraces = false;
@ -323,8 +322,7 @@ class HtmlBuilder {
private _createTestEntry(test: TestCasePublic, projectName: string, reportName: string | undefined, path: string[]): TestEntry { private _createTestEntry(test: TestCasePublic, projectName: string, reportName: string | undefined, path: string[]): TestEntry {
const duration = test.results.reduce((a, r) => a + r.duration, 0); const duration = test.results.reduce((a, r) => a + r.duration, 0);
const location = this._relativeLocation(test.location)!; const location = this._relativeLocation(test.location)!;
path = [...path.slice(1)]; path = path.slice(1);
this._testPath.set(test.id, path);
const results = test.results.map(r => this._createTestResult(test, r)); const results = test.results.map(r => this._createTestResult(test, r));