mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
40 lines
772 B
TypeScript
40 lines
772 B
TypeScript
const userMock = {
|
|
isLogged: false,
|
|
isLoading: false,
|
|
isWeb3: false,
|
|
isOceanNetwork: false,
|
|
account: '',
|
|
web3: {},
|
|
ocean: {
|
|
aquarius: {
|
|
queryMetadata: jest.fn()
|
|
}
|
|
},
|
|
balance: { eth: 0, ocn: 0 },
|
|
network: '',
|
|
requestFromFaucet: jest.fn(),
|
|
unlockAccounts: jest.fn(),
|
|
message: ''
|
|
}
|
|
|
|
const userMockConnected = {
|
|
isLogged: true,
|
|
isLoading: false,
|
|
isWeb3: true,
|
|
isOceanNetwork: true,
|
|
account: '0xxxxxx',
|
|
web3: {},
|
|
ocean: {
|
|
aquarius: {
|
|
queryMetadata: jest.fn()
|
|
}
|
|
},
|
|
balance: { eth: 0, ocn: 0 },
|
|
network: '',
|
|
requestFromFaucet: jest.fn(),
|
|
unlockAccounts: jest.fn(),
|
|
message: ''
|
|
}
|
|
|
|
export { userMock, userMockConnected }
|