summaryrefslogtreecommitdiff
path: root/test/playwright/playwright-util.js
diff options
context:
space:
mode:
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,
+ },
+ },
+ },
+ },
};
}