Skip to content

Commit

Permalink
test: adjust test to reference new method name
Browse files Browse the repository at this point in the history
  • Loading branch information
JTraill committed Feb 24, 2025
1 parent dd8b670 commit a78ffa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/tests/components/courtList/CourtListSearch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('CourtListSearch.vue', () => {
},
};
locationService = {
getPCSSCourtRooms: vi
getLocationsAndCourtRooms: vi
.fn()
.mockResolvedValue([
{ locationId: 1, locationNm: 'Location 1', courtRooms: ['Room 1'] },
Expand Down Expand Up @@ -57,7 +57,7 @@ describe('CourtListSearch.vue', () => {
});

it('fetches court locations on mount', async () => {
expect(locationService.getPCSSCourtRooms).toHaveBeenCalled();
expect(locationService.getLocationsAndCourtRooms).toHaveBeenCalled();
expect(commonStore.updateCourtRoomsAndLocations).toHaveBeenCalledWith([
{ locationId: 1, locationNm: 'Location 1', courtRooms: ['Room 1'] },
]);
Expand Down

0 comments on commit a78ffa8

Please sign in to comment.