Compare commits
1 Commits
master
...
f8cfdf70f1
| Author | SHA1 | Date | |
|---|---|---|---|
| f8cfdf70f1 |
@@ -1,5 +1,4 @@
|
|||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
import { clearPizzaDay } from './helpers';
|
|
||||||
|
|
||||||
test.beforeEach(async ({ page, request }) => {
|
test.beforeEach(async ({ page, request }) => {
|
||||||
// Vyčistíme volby dne, aby testy neovlivnily navzájem
|
// Vyčistíme volby dne, aby testy neovlivnily navzájem
|
||||||
|
|||||||
@@ -141,8 +141,9 @@ router.post("/clear", async (req: Request<{}, any, any>, res, next) => {
|
|||||||
const dateKey = formatDate(date);
|
const dateKey = formatDate(date);
|
||||||
const data = await storage.getData<any>(dateKey);
|
const data = await storage.getData<any>(dateKey);
|
||||||
|
|
||||||
// Vymažeme všechny volby
|
// Vymažeme všechny volby i aktivní pizza day
|
||||||
data.choices = {};
|
data.choices = {};
|
||||||
|
delete data.pizzaDay;
|
||||||
|
|
||||||
await storage.setData(dateKey, data);
|
await storage.setData(dateKey, data);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user