Skip to content

Commit

Permalink
Update index.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pujux authored Jul 30, 2020
1 parent 9d1b48f commit 57a8b85
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -913,20 +913,7 @@ describe('NY TIMES', function() {
row.should.have.property('deaths')
}
})

it('/v2/nyt/counties', async function () {
const data = await api.nyt.counties()
data.should.be.a('array')
for(let row of data){
row.should.have.property('date')
row.should.have.property('county')
row.should.have.property('state')
row.should.have.property('fips')
row.should.have.property('cases')
row.should.have.property('deaths')
}
})


it('/v2/nyt/counties/cook', async function () {
const data = await api.nyt.counties({county:'cook'})
data.should.be.a('array')
Expand Down Expand Up @@ -1017,4 +1004,4 @@ describe('GOVERNMENT DATA', function() {
should.exist(govData)
}
})
})
})

0 comments on commit 57a8b85

Please sign in to comment.