From 010fbb872ffcbd395e98a3d0d52d709253626282 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 28 Jan 2024 12:30:31 +0100 Subject: [PATCH] fix tests --- src/pages/_error/Page.test.ts | 2 +- src/pages/about/Page.test.ts | 2 +- src/pages/app/Page.test.ts | 2 +- src/pages/index/Page.test.ts | 2 +- .../index/__snapshots__/Page.test.ts.snap | 68 ------------------- 5 files changed, 4 insertions(+), 72 deletions(-) diff --git a/src/pages/_error/Page.test.ts b/src/pages/_error/Page.test.ts index a7c4bca..0f2e3db 100644 --- a/src/pages/_error/Page.test.ts +++ b/src/pages/_error/Page.test.ts @@ -8,7 +8,7 @@ import { title } from './+title' describe('ErrorPage', () => { it('title returns correct title', () => { - expect(title).toBe('DreamMall | Fehler') + expect(title).toBe('IT4C | Error') }) describe('500 Error', () => { const WrapperUndefined = () => { diff --git a/src/pages/about/Page.test.ts b/src/pages/about/Page.test.ts index 5bb7b6c..e9c3346 100644 --- a/src/pages/about/Page.test.ts +++ b/src/pages/about/Page.test.ts @@ -14,7 +14,7 @@ describe('AboutPage', () => { }) it('title returns correct title', () => { - expect(title).toBe('DreamMall') + expect(title).toBe('IT4C | About') }) it('renders', () => { diff --git a/src/pages/app/Page.test.ts b/src/pages/app/Page.test.ts index 9c7b6b0..a446c89 100644 --- a/src/pages/app/Page.test.ts +++ b/src/pages/app/Page.test.ts @@ -14,7 +14,7 @@ describe('AppPage', () => { }) it('title returns correct title', () => { - expect(title).toBe('DreamMall') + expect(title).toBe('IT4C | App') }) it('renders', () => { diff --git a/src/pages/index/Page.test.ts b/src/pages/index/Page.test.ts index 026c20f..f65d918 100644 --- a/src/pages/index/Page.test.ts +++ b/src/pages/index/Page.test.ts @@ -14,7 +14,7 @@ describe('IndexPage', () => { }) it('title returns default title', () => { - expect(title).toBe('DreamMall') + expect(title).toBe('IT4C') }) it('renders', () => { diff --git a/src/pages/index/__snapshots__/Page.test.ts.snap b/src/pages/index/__snapshots__/Page.test.ts.snap index 394b523..72007f3 100644 --- a/src/pages/index/__snapshots__/Page.test.ts.snap +++ b/src/pages/index/__snapshots__/Page.test.ts.snap @@ -1,73 +1,5 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`DataPrivacyPage > renders 1`] = ` -
-
- -
- -
-
- -
-
- -

- $t('home.h1') -

-

- $t('home.text1') -

-
-

- $t('home.text2') -

-
-

- $t('home.text3') -

-
-

- $t('home.text4') -