Skip to content

Commit

Permalink
Remove unnecessary files, format files
Browse files Browse the repository at this point in the history
Signed-off-by: David Kwon <dakwon@redhat.com>
  • Loading branch information
dkwon17 committed Sep 29, 2023
1 parent 530113a commit 98fdf5f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 205 deletions.
201 changes: 0 additions & 201 deletions tests/e2e/CheReporter.js

This file was deleted.

2 changes: 1 addition & 1 deletion tests/e2e/driver/ChromeDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class ChromeDriver implements IDriver {

constructor() {
const options: Options = this.getDriverOptions();
options.setLoggingPrefs({performance: 'ALL'})
options.setLoggingPrefs({ performance: 'ALL' });
if (CHROME_DRIVER_CONSTANTS.TS_USE_WEB_DRIVER_FOR_TEST) {
this.driver = this.getDriverBuilder(options).build();
}
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions tests/e2e/utils/CheReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ class CheReporter extends mocha.reporters.Spec {

// take networking logs and write to file
const networkLogsEntries: logging.Entry[] = await this.driverHelper.getDriver().manage().logs().get('performance');
const events = networkLogsEntries.map(entry => JSON.parse(entry.message).message)
const har = chromeHar.harFromMessages(events, {includeTextFromResponseBody: true});
const events = networkLogsEntries.map((entry) => JSON.parse(entry.message).message);
const har = chromeHar.harFromMessages(events, { includeTextFromResponseBody: true });
const networkLogsStream: WriteStream = fs.createWriteStream(harFileName);
networkLogsStream.write(Buffer.from(JSON.stringify(har)), (): void => {
networkLogsStream.end();
Expand Down

0 comments on commit 98fdf5f

Please sign in to comment.