progmaweb
The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.
Clonegit clone https://git.progmasoft.com/progmaweb
Format the catalog and the site tests with Prettier
- Commit
189b15ca0909033a40626bc8f600686e561b9cbb- Author
- Leitwolf11 ·
- Parents
9a6cfb275189
Changes
apps/web/lib/products.ts | 5 +---- apps/web/tests/sites.test.mjs | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/web/lib/products.ts b/apps/web/lib/products.ts index b4efc6e..afc9bc9 100644 --- a/apps/web/lib/products.ts +++ b/apps/web/lib/products.ts @@ -7,10 +7,7 @@ import type { Locale } from "./localization"; * The products of product.progmasoft.com. Each one has a page there and its * own site; the catalog only introduces it and leads on. */ -export const productSlugs = [ - "tazel", - "catch3", -] as const; +export const productSlugs = ["tazel", "catch3"] as const; export type ProductSlug = (typeof productSlugs)[number]; export function isProductSlug(value: string): value is ProductSlug { diff --git a/apps/web/tests/sites.test.mjs b/apps/web/tests/sites.test.mjs index cf0a19f..8083e76 100644 --- a/apps/web/tests/sites.test.mjs +++ b/apps/web/tests/sites.test.mjs @@ -38,10 +38,7 @@ test("every language has the same home, catalog and product-site text", () => { }); test("the catalog lists the products the user named, each with a site", () => { - assert.deepEqual( - [...productSlugs], - ["tazel", "catch3"], - ); + assert.deepEqual([...productSlugs], ["tazel", "catch3"]); for (const slug of productSlugs) { assert.match(products[slug].site, /^https:\/\//, slug); assert.match(