fix: animiere Live-Ticker und stabilisiere Benachrichtigungsschalter
This commit is contained in:
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user