diff --git a/source/airports/__snapshots__/integration.test.ts.snap b/source/airports/__snapshots__/integration.test.ts.snap index e523a2e..3a720d8 100644 --- a/source/airports/__snapshots__/integration.test.ts.snap +++ b/source/airports/__snapshots__/integration.test.ts.snap @@ -6295,19 +6295,19 @@ exports[`Airports > getClosest > When asked for the closest airport { "aliases": [], "city": { - "code": "DUBLIN", - "name": "Dublin", + "code": Any, + "name": Any, }, - "code": "DUB", + "code": Any, "coordinates": { - "latitude": 53.4213, - "longitude": -6.27007, + "latitude": Any, + "longitude": Any, }, "country": { - "code": "ie", - "name": "Ireland", + "code": Any, + "name": Any, }, - "name": "Dublin", + "name": Any, } `; diff --git a/source/airports/integration.test.ts b/source/airports/integration.test.ts index 415418a..fa71ba5 100644 --- a/source/airports/integration.test.ts +++ b/source/airports/integration.test.ts @@ -20,7 +20,25 @@ describe('Airports', () => { expect.assertions(1) const data = await airports.getClosest() - expect(data).toMatchSnapshot() + expect(data).toMatchSnapshot({ + /* eslint-disable @typescript-eslint/no-unsafe-assignment */ + aliases: [], + city: { + code: expect.any(String), + name: expect.any(String) + }, + code: expect.any(String), + coordinates: { + latitude: expect.any(Number), + longitude: expect.any(Number) + }, + country: { + code: expect.any(String), + name: expect.any(String) + }, + name: expect.any(String) + /* eslint-enable @typescript-eslint/no-unsafe-assignment */ + }) }) })