mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
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:
parent
7303709710
commit
23ea63a1d3
1 changed files with 6 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue