aboutsummaryrefslogtreecommitdiff
path: root/test/playwright/playwright-util.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /test/playwright/playwright-util.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'test/playwright/playwright-util.js')
-rw-r--r--test/playwright/playwright-util.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/playwright/playwright-util.js b/test/playwright/playwright-util.js
index bebbf08c..d8ecafa2 100644
--- a/test/playwright/playwright-util.js
+++ b/test/playwright/playwright-util.js
@@ -32,8 +32,8 @@ export const test = base.extend({
args: [
'--headless=new',
`--disable-extensions-except=${pathToExtension}`,
- `--load-extension=${pathToExtension}`
- ]
+ `--load-extension=${pathToExtension}`,
+ ],
});
await use(context);
await context.close();
@@ -46,7 +46,7 @@ export const test = base.extend({
const extensionId = background.url().split('/')[2];
await use(extensionId);
- }
+ },
});
export const expect = test.expect;
@@ -59,7 +59,7 @@ export function getMockModelFields() {
['Word', '{expression}'],
['Reading', '{furigana-plain}'],
['Sentence', '{clipboard-text}'],
- ['Audio', '{audio}']
+ ['Audio', '{audio}'],
]);
}
@@ -78,7 +78,7 @@ export async function mockAnkiRouteHandler(route) {
const responseJson = {
status: 200,
contentType: 'text/json',
- body: JSON.stringify(body)
+ body: JSON.stringify(body),
};
await route.fulfill(responseJson);
} catch {
@@ -108,7 +108,7 @@ export function getExpectedAddNoteBody() {
Word: '読む',
Reading: '読[よ]む',
Audio: '[sound:mock_audio.mp3]',
- Sentence: '読むの例文'
+ Sentence: '読むの例文',
},
tags: ['yomitan'],
deckName: 'Mock Deck',
@@ -119,11 +119,11 @@ export function getExpectedAddNoteBody() {
duplicateScopeOptions: {
deckName: null,
checkChildren: false,
- checkAllModels: false
- }
- }
- }
- }
+ checkAllModels: false,
+ },
+ },
+ },
+ },
};
}