Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/web
diff options
context:
space:
mode:
authorLeitwolf112026-11-17 21:25:08 +0300
committerLeitwolf112026-11-17 21:25:08 +0300
commitdb0a232f68c57fabbf411b73f575822a0ff2ec76 (patch)
tree69755d3cb161717f96834327a46190848d6bf8bf /apps/web
parent6d78305900851f98e00cc1b688d1237b5e33f857 (diff)
downloadprogmaweb-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/web')
-rw-r--r--apps/web/e2e/preferences.spec.ts4
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/");