chore: remove asset entity (#17703)

This commit is contained in:
Daniel Dietzler
2025-04-18 23:39:56 +02:00
committed by GitHub
parent 52ae06c119
commit dd1fcd5be5
12 changed files with 281 additions and 299 deletions
@@ -39,6 +39,29 @@ describe(SearchService.name, () => {
});
});
describe('searchPlaces', () => {
it('should search places', async () => {
mocks.search.searchPlaces.mockResolvedValue([
{
id: 42,
name: 'my place',
latitude: 420,
longitude: 69,
admin1Code: null,
admin1Name: null,
admin2Code: null,
admin2Name: null,
alternateNames: null,
countryCode: 'US',
modificationDate: new Date(),
},
]);
await sut.searchPlaces({ name: 'place' });
expect(mocks.search.searchPlaces).toHaveBeenCalledWith('place');
});
});
describe('getExploreData', () => {
it('should get assets by city and tag', async () => {
mocks.asset.getAssetIdByCity.mockResolvedValue({