mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Matthias Kretschmann
4d119467a4
* refactor price context to fetch multiple tokens * fixes * move tokenIds to app config * make conversion work * conversion for all user tokens, hide if 0 * different user balance key tactic * remove NFT gas estimation * closes #1633 * small simplification in getCoingeckoTokenId logic * basic Prices provider test * mock some hooks * mock MarketMetadata in all tests
8 lines
248 B
JavaScript
8 lines
248 B
JavaScript
import '@testing-library/jest-dom/extend-expect'
|
|
import './__mocks__/matchMedia'
|
|
import marketMetadataMock from './__mocks__/MarketMetadata'
|
|
|
|
jest.mock('../../src/@context/MarketMetadata', () => ({
|
|
useMarketMetadata: () => marketMetadataMock
|
|
}))
|