fix: animiere Live-Ticker und stabilisiere Benachrichtigungsschalter
Some checks failed
Code Analysis and Production Deploy / analyze (push) Successful in 7m55s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Failing after 2m19s

This commit is contained in:
Torsten Schulz (local)
2026-10-29 13:52:05 +01:00
parent 7a991a50c7
commit 4ecc2cc90c
9 changed files with 325 additions and 51 deletions

View File

@@ -175,6 +175,9 @@ describe('Config & Profil Endpoints', () => {
id: '1',
notificationSettings: {
eventsToday: true,
liveTickerStarts: true,
liveTickerScoreChanges: true,
liveTickerFinished: true,
selectedTeamSlugs: ['herren-1', 'herren-1', ''],
selectedTeamSeason: '2025/2026',
notificationTime: '07:30'
@@ -185,6 +188,9 @@ describe('Config & Profil Endpoints', () => {
expect(result.success).toBe(true)
expect(result.settings.eventsToday).toBe(true)
expect(result.settings.liveTickerStarts).toBe(true)
expect(result.settings.liveTickerScoreChanges).toBe(true)
expect(result.settings.liveTickerFinished).toBe(true)
expect(result.settings.newEvents).toBe(false)
expect(result.settings.selectedTeamSlugs).toEqual(['herren-1'])
expect(result.settings.notificationTime).toBe('07:30')
@@ -202,6 +208,9 @@ describe('Config & Profil Endpoints', () => {
const event = createEvent({ headers: { authorization: 'Bearer android-token' } })
mockSuccessReadBody({
newEvents: true,
liveTickerStarts: true,
liveTickerScoreChanges: true,
liveTickerFinished: true,
eventsToday: 'true',
birthdays: true,
selectedTeamSlugs: ['herren-1', 'herren-1', ' jugend '],
@@ -218,6 +227,9 @@ describe('Config & Profil Endpoints', () => {
expect(result.success).toBe(true)
expect(result.settings.newEvents).toBe(true)
expect(result.settings.liveTickerStarts).toBe(true)
expect(result.settings.liveTickerScoreChanges).toBe(true)
expect(result.settings.liveTickerFinished).toBe(true)
expect(result.settings.eventsToday).toBe(false)
expect(result.settings.birthdays).toBe(true)
expect(result.settings.selectedTeamSlugs).toEqual(['herren-1', 'jugend'])
@@ -227,6 +239,9 @@ describe('Config & Profil Endpoints', () => {
id: '1',
notificationSettings: expect.objectContaining({
newEvents: true,
liveTickerStarts: true,
liveTickerScoreChanges: true,
liveTickerFinished: true,
birthdays: true,
selectedTeamSeason: '2026/2027'
})