2019-05-31 12:56:13 +02:00
|
|
|
import oceanMock from './ocean-mock'
|
|
|
|
|
2019-04-30 19:19:28 +02:00
|
|
|
const userMock = {
|
|
|
|
isLogged: false,
|
|
|
|
isLoading: false,
|
2019-07-10 13:05:43 +02:00
|
|
|
isBurner: false,
|
2019-07-11 23:01:58 +02:00
|
|
|
isWeb3Capable: false,
|
2019-04-30 19:19:28 +02:00
|
|
|
account: '',
|
|
|
|
web3: {},
|
2019-05-31 12:56:13 +02:00
|
|
|
...oceanMock,
|
2019-04-30 19:19:28 +02:00
|
|
|
balance: { eth: 0, ocn: 0 },
|
|
|
|
network: '',
|
|
|
|
requestFromFaucet: jest.fn(),
|
2019-07-10 13:05:43 +02:00
|
|
|
loginMetamask: jest.fn(),
|
|
|
|
loginBurnerWallet: jest.fn(),
|
2019-04-30 19:19:28 +02:00
|
|
|
message: ''
|
|
|
|
}
|
|
|
|
|
|
|
|
const userMockConnected = {
|
|
|
|
isLogged: true,
|
|
|
|
isLoading: false,
|
2019-07-10 13:05:43 +02:00
|
|
|
isBurner: false,
|
2019-07-11 23:01:58 +02:00
|
|
|
isWeb3Capable: true,
|
2019-04-30 19:19:28 +02:00
|
|
|
account: '0xxxxxx',
|
|
|
|
web3: {},
|
2019-05-31 12:56:13 +02:00
|
|
|
...oceanMock,
|
2019-04-30 19:19:28 +02:00
|
|
|
balance: { eth: 0, ocn: 0 },
|
|
|
|
network: '',
|
|
|
|
requestFromFaucet: jest.fn(),
|
2019-07-10 13:05:43 +02:00
|
|
|
loginMetamask: jest.fn(),
|
|
|
|
loginBurnerWallet: jest.fn(),
|
2019-04-30 19:19:28 +02:00
|
|
|
message: ''
|
|
|
|
}
|
|
|
|
|
|
|
|
export { userMock, userMockConnected }
|