fix(citycorners): update controller spec for ReviewService dependency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-26 00:51:26 +01:00
parent 7303709710
commit 23ea63a1d3

View file

@ -7,6 +7,7 @@ describe('LocationController', () => {
let controller: LocationController;
let locationService: any;
let lookupService: any;
let reviewService: any;
beforeEach(() => {
locationService = {
@ -23,7 +24,11 @@ describe('LocationController', () => {
lookupService = {
lookup: jest.fn(),
};
controller = new LocationController(locationService, lookupService);
reviewService = {
getStats: jest.fn().mockResolvedValue({ averageRating: 0, totalReviews: 0 }),
getStatsForLocations: jest.fn().mockResolvedValue({}),
};
controller = new LocationController(locationService, lookupService, reviewService);
});
afterEach(() => jest.clearAllMocks());