Skip to content

Commit

Permalink
Remove support for old Node.js versions (#39)
Browse files Browse the repository at this point in the history
* Remove support for old Node.js versions

* Fix some values for Bari

* Remove some fields from defined ones

The fields are codiceIstat and codCatastale

* Remove trailing comma
  • Loading branch information
DavidePastore authored Jul 7, 2023
1 parent b6c8c3f commit 1375f96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 13.x, 14.x, 16.x, 17.x]
node-version: [16.x, 17.x]

steps:
- name: Git checkout
Expand Down
10 changes: 4 additions & 6 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ describe('Compendio Vicorum', function () {
'longitudine',
'abitanti',
'prefisso',
'fusoOrario',
'codiceIstat',
'codCatastale'
'fusoOrario'
]
// Read the basic information about the comune
collection.find({}).toArray(function (err, docs) {
Expand Down Expand Up @@ -127,8 +125,8 @@ describe('Compendio Vicorum', function () {
assert.strictEqual(item.longitudine, '16°52′00″E')
assert.strictEqual(item.altitudine, '5 m s.l.m.')
assert.strictEqual(item.superficie, '116,17 km²')
assert.strictEqual(item.abitanti, '316 140')
assert.strictEqual(item.densita, '2 721,36 ab./km²')
assert.strictEqual(item.abitanti, '315 693')
assert.strictEqual(item.densita, '2 717,51 ab./km²')
assert.deepEqual(item.comuniConfinanti, expectedComuniConfinanti)
assert.deepEqual(item.codicePostale, utils.generateAllCodPostaliBetweenTwo(121, 132, '70'))
assert.strictEqual(item.prefisso, '080')
Expand All @@ -138,7 +136,7 @@ describe('Compendio Vicorum', function () {
assert.strictEqual(item.targa, 'BA')
assert.strictEqual(item.classificazioneSismica, 'zona 3 (sismicità bassa)')
assert.strictEqual(item.classificazioneClimatica, 'zona C, 1 185 GG')
assert.strictEqual(item.nomeAbitanti, 'baresi')
assert.strictEqual(item.nomeAbitanti, 'Baresi')
assert.strictEqual(item.patrono, 'san Nicola, san Sabino (compatrono), Madonna Odigitria')
assert.strictEqual(item.giornoFestivo, '8 maggio - san Nicola')
assert.strictEqual(item.sitoIstituzionale, 'http://www.comune.bari.it')
Expand Down

0 comments on commit 1375f96

Please sign in to comment.