diff options
| author | Leitwolf11 | 2026-11-17 21:25:08 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-17 21:25:08 +0300 |
| commit | db0a232f68c57fabbf411b73f575822a0ff2ec76 (patch) | |
| tree | 69755d3cb161717f96834327a46190848d6bf8bf /apps | |
| parent | 6d78305900851f98e00cc1b688d1237b5e33f857 (diff) | |
| download | progmaweb-site/shared-preferences.tar.gz | |
Give the localStorage step of the preferences test a block bodysite/shared-preferences
The arrow function passed to page.evaluate returned the void result of
localStorage.setItem. A block body says that nothing is returned, which is
what no-confusing-void-expression asks for (Codacy on #81).
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/e2e/preferences.spec.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/e2e/preferences.spec.ts b/apps/web/e2e/preferences.spec.ts index 18a3326..cc2bdce 100644 --- a/apps/web/e2e/preferences.spec.ts +++ b/apps/web/e2e/preferences.spec.ts @@ -60,7 +60,9 @@ test("a theme of an earlier version in localStorage moves into the shared cookie page, }) => { await open(page, "account.progmasoft.com/"); - await page.evaluate(() => localStorage.setItem("progmasoft_theme", "dark")); + await page.evaluate(() => { + localStorage.setItem("progmasoft_theme", "dark"); + }); await open(page, "account.progmasoft.com/"); expect(await theme(page)).toBe("dark"); await open(page, "viget.progmasoft.com/"); |