diff --git a/__tests__/requests/insee.spec.js b/__tests__/requests/insee.spec.js index 8104c208dc31207d5e644b6d7df253e5b71d2b52..935db10de9464b68faa733d1d2b4ca4773c147ba 100644 --- a/__tests__/requests/insee.spec.js +++ b/__tests__/requests/insee.spec.js @@ -2,7 +2,7 @@ const { errors } = require('cozy-konnector-libs') const { getInseeCode } = require('../../src/requests/insee') describe('getInseeCode', () => { - it('should return a valid insee code for Lyon 7', async () => { + it('should return insee code for: Lyon 7', async () => { expect(await getInseeCode(69007)).toEqual('69387') }) @@ -23,11 +23,11 @@ describe('getInseeCode', () => { }) describe('should handle communes with multiple insee code', () => { - it('should return Craponne insee code for post code 69290', async () => { + it('should return insee code for: Craponne', async () => { expect(await getInseeCode(69290, 'CRAPONNE')).toEqual('69069') }) - it('should return Pollionnay insee code for post code 69290', async () => { + it('should return insee code for: Pollionnay', async () => { expect(await getInseeCode(69290, 'POLLIONNAY')).toEqual('69154') })