Skip to content

Commit

Permalink
Merge pull request #242 from fairnesscoop/feat/meal-ticket-no-leaving…
Browse files Browse the repository at this point in the history
…-date

feat: User without leaving date on meal tickets
  • Loading branch information
mmarchois authored Apr 1, 2022
2 parents ce6ebfb + cb0af37 commit 7091cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('GetMealTicketsPerMonthQueryHandler', () => {
when(user2.getFirstName()).thenReturn('Hélène');
when(user2.getLastName()).thenReturn('MARCHOIS');

when(userRepository.findUsers(false))
when(userRepository.findUsers(false, true))
.thenResolve([instance(user), instance(user2)]);

when(mealTicketRemovalRepository.findByMonth(date))
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('GetMealTicketsPerMonthQueryHandler', () => {
);

verify(
userRepository.findUsers(false)
userRepository.findUsers(false, true)
).once();
verify(
mealTicketRemovalRepository.findByMonth(date)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class GetMealTicketsPerMonthQueryHandler {

const { date } = query;
const [ users, mealTicketRemovals, events ] = await Promise.all([
this.userRepository.findUsers(false),
this.userRepository.findUsers(false, true),
this.mealTicketRemovalRepository.findByMonth(date),
this.eventRepository.findAllEventsByMonth(date)
]);
Expand Down

0 comments on commit 7091cf5

Please sign in to comment.