mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
* early return is no web3 or ddo * Creating test for MetaFull * adding test: src/components/Asset/AssetContent/MetaSecondary.test.tsx * Adding test for bookmarks * Adding test for displaying payment collector * Removing comments * Renaming assetAquarius * Renaming assetWithAccessDetails * Ensuring that the payment collector is shown even without a wallet connected * Removing broken test * Using getDummyWeb3 for fetching the payment collector address
21 lines
590 B
TypeScript
21 lines
590 B
TypeScript
import marketMetadata from '../__fixtures__/marketMetadata'
|
|
import userPreferences from '../__fixtures__/userPreferences'
|
|
import web3 from '../__fixtures__/web3'
|
|
import { asset } from '../__fixtures__/datasetWithAccessDetails'
|
|
|
|
jest.mock('../../src/@context/MarketMetadata', () => ({
|
|
useMarketMetadata: () => marketMetadata
|
|
}))
|
|
|
|
jest.mock('../../src/@context/UserPreferences', () => ({
|
|
useUserPreferences: () => userPreferences
|
|
}))
|
|
|
|
jest.mock('../../src/@context/Web3', () => ({
|
|
useWeb3: () => web3
|
|
}))
|
|
|
|
jest.mock('../../../@context/Asset', () => ({
|
|
useAsset: () => ({ asset })
|
|
}))
|