Skip to content

Commit

Permalink
fix(api): ignore latestPrice result on JSONRPC call error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Oct 30, 2024
1 parent ba00ce7 commit 6305475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/test/networkRouter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Network, Repositories, RouterDataFeedsConfig } from '../types'
import { NetworkInfo, NetworkRouter } from '../src/web3Middleware/NetworkRouter'
import { NetworkInfo, NetworkRouter, NetworkSnapshot } from '../src/web3Middleware/NetworkRouter'
import { Configuration } from '../src/web3Middleware/Configuration'
import dataFeedsRouter from './web3Middleware/dataFeedsRouter.json'
// FIXME: create a proper mock for web3
Expand Down Expand Up @@ -30,7 +30,7 @@ describe('NetworkRouter', () => {
repositories,
networkInfo,
)
const snapshot = await router.getSnapshot()
const snapshot: NetworkSnapshot = await router.getSnapshot() as NetworkSnapshot

expect(snapshot.feeds[0].caption).toBeTruthy()
expect(snapshot.feeds[0].id).toBeTruthy()
Expand Down

0 comments on commit 6305475

Please sign in to comment.