Skip to content

Commit

Permalink
Update tests (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcolinjames committed May 24, 2021
1 parent 9c0e1c6 commit f793ca8
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/http/src/resources/__tests__/Hotspots.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ describe('get', () => {

describe('elected', () => {
nock('https://api.helium.io')
.get('/v1/elected/123456')
.get('/v1/hotspots/elected/123456')
.reply(200, {
data: [
hotspotFixture({ name: 'previous-consensus-hotspot-1' }),
Expand All @@ -171,7 +171,7 @@ describe('elected', () => {
],
})
nock('https://api.helium.io')
.get('/v1/elected')
.get('/v1/hotspots/elected')
.reply(200, {
data: [
hotspotFixture({ name: 'current-consensus-hotspot-1' }),
Expand Down Expand Up @@ -428,20 +428,14 @@ describe('hexes', () => {
nock('https://api.helium.io')
.get('/v1/hotspots/hex/882664ca8dfffff')
.reply(200, {
data: [
hotspotFixture({ name: 'hotspot-1' }),
hotspotFixture({ name: 'hotspot-2' }),
],
data: [hotspotFixture({ name: 'hotspot-1' }), hotspotFixture({ name: 'hotspot-2' })],
cursor: 'cursor-1',
})

nock('https://api.helium.io')
.get('/v1/hotspots/hex/882664ca8dfffff?cursor=cursor-1')
.reply(200, {
data: [
hotspotFixture({ name: 'hotspot-3' }),
hotspotFixture({ name: 'hotspot-4' }),
],
data: [hotspotFixture({ name: 'hotspot-3' }), hotspotFixture({ name: 'hotspot-4' })],
})

it('lists hotspots within a res8 hex index', async () => {
Expand Down

0 comments on commit f793ca8

Please sign in to comment.