Skip to content

Commit

Permalink
chore: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Jul 17, 2024
1 parent 9b0e9a8 commit 203d1f3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions e2e/src/api/specs/asset.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,21 @@ describe('/asset', () => {
expect(status).toEqual(200);
});

it('should geocode gps data without city', async () => {
const { status, body } = await request(app)
.put(`/assets/${user1Assets[0].id}`)
.set('Authorization', `Bearer ${user1.accessToken}`)
.send({ latitude: 69, longitude: 42 });

await utils.waitForQueueFinish(admin.accessToken, 'metadataExtraction');

expect(body).toMatchObject({
id: user1Assets[0].id,
exifInfo: expect.objectContaining({ city: undefined, country: 'Kazakhstan' }),
});
expect(status).toEqual(200);
});

it('should set the description', async () => {
const { status, body } = await request(app)
.put(`/assets/${user1Assets[0].id}`)
Expand Down

0 comments on commit 203d1f3

Please sign in to comment.