Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kn-ms committed Jan 19, 2024
1 parent 160d73a commit dae7047
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/testplan/testplanJSONBasedTestLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ interface TestPlanMetadata extends BasicInfo {
}

export class TestPlanJSONBasedTestLoader implements ITestPlanTestLoader {
private tmp_file: string;
private tmpFile: string;

constructor(private readonly logger: ILogger) {
this.tmp_file = tmp.tmpNameSync({
this.tmpFile = tmp.tmpNameSync({
prefix: 'testplan-info',
postfix: '.json',
});
}

getArgs(baseArguments: string[]): string[] {
return ['--info', `json:${this.tmp_file}`].concat(baseArguments);
return ['--info', `json:${this.tmpFile}`].concat(baseArguments);
}
parseOutput(_: string): (TestSuiteInfo | TestInfo)[] {
parseOutput(_output: string): (TestSuiteInfo | TestInfo)[] {
try {
const data = fs.readFileSync(this.tmp_file, 'utf8');
const data = fs.readFileSync(this.tmpFile, 'utf8');

// parse json and convert nulls to undefined
const metadata = <TestPlanMetadata>JSON.parse(data, (_, value) => value ?? undefined);
Expand Down

0 comments on commit dae7047

Please sign in to comment.