mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): Improve reverse geocoded location metadata (#9051)
* fix: improve reverse geocoding * fix: update tests referencing states * fix: expect state suggestion in any order --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
a2cf8c7fc7
commit
4bb7d2df49
3 changed files with 14 additions and 8 deletions
|
|
@ -469,7 +469,8 @@ describe('/search', () => {
|
|||
const { status, body } = await request(app)
|
||||
.get('/search/suggestions?type=state')
|
||||
.set('Authorization', `Bearer ${admin.accessToken}`);
|
||||
expect(body).toEqual(states);
|
||||
expect(body).toHaveLength(states.length);
|
||||
expect(body).toEqual(expect.arrayContaining(states));
|
||||
expect(status).toBe(200);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue