2019-04-30 19:19:28 +02:00
|
|
|
const userMock = {
|
|
|
|
isLogged: false,
|
|
|
|
isLoading: false,
|
|
|
|
isWeb3: false,
|
2019-05-14 12:52:41 +02:00
|
|
|
isOceanNetwork: false,
|
2019-04-30 19:19:28 +02:00
|
|
|
account: '',
|
|
|
|
web3: {},
|
2019-05-15 17:37:36 +02:00
|
|
|
ocean: {
|
|
|
|
aquarius: {
|
|
|
|
queryMetadata: jest.fn()
|
|
|
|
}
|
|
|
|
},
|
2019-04-30 19:19:28 +02:00
|
|
|
balance: { eth: 0, ocn: 0 },
|
|
|
|
network: '',
|
|
|
|
requestFromFaucet: jest.fn(),
|
|
|
|
unlockAccounts: jest.fn(),
|
|
|
|
message: ''
|
|
|
|
}
|
|
|
|
|
|
|
|
const userMockConnected = {
|
|
|
|
isLogged: true,
|
|
|
|
isLoading: false,
|
|
|
|
isWeb3: true,
|
2019-05-14 12:52:41 +02:00
|
|
|
isOceanNetwork: true,
|
2019-04-30 19:19:28 +02:00
|
|
|
account: '0xxxxxx',
|
|
|
|
web3: {},
|
2019-05-15 17:37:36 +02:00
|
|
|
ocean: {
|
|
|
|
aquarius: {
|
|
|
|
queryMetadata: jest.fn()
|
|
|
|
}
|
|
|
|
},
|
2019-04-30 19:19:28 +02:00
|
|
|
balance: { eth: 0, ocn: 0 },
|
|
|
|
network: '',
|
|
|
|
requestFromFaucet: jest.fn(),
|
|
|
|
unlockAccounts: jest.fn(),
|
|
|
|
message: ''
|
|
|
|
}
|
|
|
|
|
|
|
|
export { userMock, userMockConnected }
|