Skip to content

Commit

Permalink
ISSUE #5257 - enhance test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amantini1997 committed Dec 3, 2024
1 parent 94571b5 commit ec410d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/test/tickets/card/ticketsCard.store.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,16 @@ describe('Tickets: store', () => {
})

it('should reset the state', () => {
const [ticketTitleFilter] = templatesToFilters([]);
const baseFilter: BaseFilter = {
operator: 'eq',
values: [],
};
const ticketTitleCardFilter: TicketCardFilter = { ...ticketTitleFilter, filter: baseFilter };
dispatch(TicketsCardActions.setSelectedTicket(ticketId));
dispatch(TicketsCardActions.setSelectedTemplate(templateId));
dispatch(TicketsCardActions.setSelectedTicketPin(pinId));
dispatch(TicketsCardActions.upsertFilter(ticketTitleCardFilter));
dispatch(TicketsCardActions.resetFilters());
dispatch(TicketsCardActions.resetState());

Expand Down

0 comments on commit ec410d8

Please sign in to comment.