Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gibiw committed Sep 24, 2024
1 parent 4c78e5c commit 03c78c3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions qase-playwright/src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ export class PlaywrightQaseReporter implements Reporter {
*/
private static qaseIds: Map<string, number[]> = new Map<string, number[]>();

/**
* @type {Map<string, number[]>}
* @private
*/
private qaseTestWithOldAnnotation: Map<string, number[]> = new Map<string, number[]>();

/**
* @param {TestCase} test
* @returns {string[]}
Expand Down Expand Up @@ -414,12 +408,7 @@ export class PlaywrightQaseReporter implements Reporter {
} else if (testCaseMetadata.ids.length > 0) {
testResult.testops_id = testCaseMetadata.ids;
} else {
const ids = PlaywrightQaseReporter.qaseIds.get(test.title) ?? null;
testResult.testops_id = ids;
if (ids) {
const path = `${test.location.file}:${test.location.line}:${test.location.column}`;
this.qaseTestWithOldAnnotation.set(path, ids);
}
testResult.testops_id = PlaywrightQaseReporter.qaseIds.get(test.title) ?? null;
}

testResult.signature = this.getSignature(suites, testCaseMetadata.parameters, testResult.testops_id ?? []);
Expand Down

0 comments on commit 03c78c3

Please sign in to comment.