Add items and admin tests, and refactor existing ones (#2146)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Alejandra
2026-01-23 17:27:17 +01:00
committed by GitHub
parent 64eac127f0
commit 43fac49a14
6 changed files with 403 additions and 94 deletions

View File

@@ -11,3 +11,9 @@ export const slugify = (text: string) =>
.toLowerCase()
.replace(/\s+/g, "-")
.replace(/[^\w-]+/g, "")
export const randomItemTitle = () =>
`Item ${Math.random().toString(36).substring(7)}`
export const randomItemDescription = () =>
`Description ${Math.random().toString(36).substring(7)}`