Skip to content

Commit 208d4dd

Browse files
committed
Lint
1 parent 530d266 commit 208d4dd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

e2e/helpers/downloads.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export async function waitForFile(
2424
do {
2525
try {
2626
const { size } = await stat(fileName);
27-
if (size >= minimumSize) { // wait until file has some content
27+
if (size >= minimumSize) {
28+
// wait until file has some content
2829
await sleep(10); // wait a little longer to avoid partial file reads if we get unlucky with the timing
2930
return await readFile(fileName, { encoding: 'utf-8' });
3031
}

e2e/pages/RetroArchiveList.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ export class RetroArchiveList extends Page {
2020

2121
public async clickExportJson(): Promise<string> {
2222
await this.click(By.linkText('Export as JSON'));
23-
return waitForFile(`${this.slug}-export.json`, 10, this.explicitWaitTimeout);
23+
return waitForFile(
24+
`${this.slug}-export.json`,
25+
10,
26+
this.explicitWaitTimeout,
27+
);
2428
}
2529

2630
public async getArchiveLabels(): Promise<string[]> {

0 commit comments

Comments
 (0)