mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
36 lines
741 B
TypeScript
36 lines
741 B
TypeScript
import oceanMock from './ocean-mock'
|
|
|
|
const userMock = {
|
|
isLogged: false,
|
|
isLoading: false,
|
|
isBurner: false,
|
|
isWeb3Capable: false,
|
|
account: '',
|
|
web3: {},
|
|
...oceanMock,
|
|
balance: { eth: 0, ocn: 0 },
|
|
network: '',
|
|
requestFromFaucet: jest.fn(),
|
|
loginMetamask: jest.fn(),
|
|
loginBurnerWallet: jest.fn(),
|
|
message: ''
|
|
}
|
|
|
|
const userMockConnected = {
|
|
isLogged: true,
|
|
isLoading: false,
|
|
isBurner: false,
|
|
isWeb3Capable: true,
|
|
account: '0xxxxxx',
|
|
web3: {},
|
|
...oceanMock,
|
|
balance: { eth: 0, ocn: 0 },
|
|
network: '',
|
|
requestFromFaucet: jest.fn(),
|
|
loginMetamask: jest.fn(),
|
|
loginBurnerWallet: jest.fn(),
|
|
message: ''
|
|
}
|
|
|
|
export { userMock, userMockConnected }
|