Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Apr 24, 2023
1 parent 249ce32 commit 0555400
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ describe('RulesTableContextProvider', () => {
{ id: '2', name: 'rule 2' },
] as Rule[],
rulesSnoozeSettings: [
{ id: '1', mute_all: true, snooze_schedule: [] },
{ id: '2', mute_all: false, snooze_schedule: [] },
{ id: '1', muteAll: true, snoozeSchedule: [] },
{ id: '2', muteAll: false, snoozeSchedule: [] },
],
});

Expand All @@ -216,21 +216,21 @@ describe('RulesTableContextProvider', () => {
{ id: '2', name: 'rule 2' },
] as Rule[],
rulesSnoozeSettings: [
{ id: '1', mute_all: true, snooze_schedule: [] },
{ id: '2', mute_all: false, snooze_schedule: [] },
{ id: '1', muteAll: true, snoozeSchedule: [] },
{ id: '2', muteAll: false, snoozeSchedule: [] },
],
});

expect(state.rulesSnoozeSettings.data).toEqual({
'1': {
id: '1',
mute_all: true,
snooze_schedule: [],
muteAll: true,
snoozeSchedule: [],
},
'2': {
id: '2',
mute_all: false,
snooze_schedule: [],
muteAll: false,
snoozeSchedule: [],
},
});
});
Expand Down

0 comments on commit 0555400

Please sign in to comment.