diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-19 07:30:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 12:30:17 +0000 |
commit | 2da866f982930c76d2317a3be426410683ecf5a2 (patch) | |
tree | e77ce545177ba398068cb63037096a56dea04e2c /test/playwright/playwright-util.js | |
parent | 65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff) |
Update eslint rules (#710)
Diffstat (limited to 'test/playwright/playwright-util.js')
-rw-r--r-- | test/playwright/playwright-util.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/playwright/playwright-util.js b/test/playwright/playwright-util.js index b9a4831a..653112c6 100644 --- a/test/playwright/playwright-util.js +++ b/test/playwright/playwright-util.js @@ -68,16 +68,16 @@ export const mockModelFieldsToAnkiValues = { /** * @param {import('playwright').Route} route - * @returns {Promise<void>|undefined} + * @returns {Promise<void>} */ -export const mockAnkiRouteHandler = (route) => { +export async function mockAnkiRouteHandler(route) { const reqBody = route.request().postDataJSON(); const respBody = ankiRouteResponses[reqBody.action]; if (!respBody) { return route.abort(); } - route.fulfill(respBody); -}; + await route.fulfill(respBody); +} /** * @param {import('playwright').Page} page |