diff --git a/__tests__/e2e/countries.spec.ts b/__tests__/e2e/countries.spec.ts index ab84946c..2573f71e 100644 --- a/__tests__/e2e/countries.spec.ts +++ b/__tests__/e2e/countries.spec.ts @@ -63,19 +63,16 @@ describe('', () => { it('countries/v2/leaderboard', async () => { const response = await seed .clear() - .then( - async () => - seed - .seed() - .then( - async () => supertest(app).get('/countries/v2/leaderboard'), - ), + .then(async () => + seed + .seed() + .then(async () => supertest(app).get('/countries/v2/leaderboard')), ); expect(response.status).toBe(200); expect(response.body.countries[0]).toMatchObject({ - id: expect.any(Number), - name: expect.any(String), - planted: expect.any(String), + id: 6632357, + name: 'United States', + planted: '2', centroid: expect.stringMatching(/coordinates/), }); await seed.clear(); diff --git a/__tests__/seed.js b/__tests__/seed.js index 80e07fc7..90f7eddf 100644 --- a/__tests__/seed.js +++ b/__tests__/seed.js @@ -25,6 +25,16 @@ const dataRawCaptureFeature = [ created_at: new Date().toUTCString(), updated_at: new Date().toUTCString(), }, + { + id: uuid.v4(), + lat: '40.50414585511928', + lon: '-75.66275380279951', + location: '0101000020E6100000B514ED8E6AEA52C05D13F4D987C04440', + field_user_id: 5127, + field_username: 'test', + created_at: new Date().toUTCString(), + updated_at: new Date().toUTCString(), + }, { id: uuid.v4(), lat: '57.57641356164619',