mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
fix tests
This commit is contained in:
parent
059ae62f96
commit
8e9a4c1fd2
@ -10,81 +10,71 @@ afterEach(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const stateMock = {
|
const stateMock = {
|
||||||
commons: { software: 'Commons', version: commonsVersion },
|
commons: {
|
||||||
squidJs: {
|
name: 'Commons',
|
||||||
software: 'Squid-js',
|
version: commonsVersion
|
||||||
version: versionSquid
|
},
|
||||||
|
squid: {
|
||||||
|
name: 'Squid-js',
|
||||||
|
status: 'Loading'
|
||||||
},
|
},
|
||||||
aquarius: {
|
aquarius: {
|
||||||
isLoading: false,
|
name: 'Aquarius',
|
||||||
software: 'Aquarius',
|
status: 'Loading'
|
||||||
version: ''
|
|
||||||
},
|
},
|
||||||
brizo: {
|
brizo: {
|
||||||
isLoading: false,
|
name: 'Brizo',
|
||||||
software: 'Brizo',
|
network: 'Nile',
|
||||||
version: '',
|
status: 'Loading'
|
||||||
contracts: {},
|
|
||||||
network: '',
|
|
||||||
'keeper-version': '0.0.0',
|
|
||||||
'keeper-url': ''
|
|
||||||
},
|
|
||||||
keeperContracts: {
|
|
||||||
isLoading: false,
|
|
||||||
software: 'Keeper Contracts',
|
|
||||||
version: '',
|
|
||||||
contracts: {},
|
|
||||||
network: ''
|
|
||||||
},
|
},
|
||||||
faucet: {
|
faucet: {
|
||||||
isLoading: false,
|
name: 'Faucet',
|
||||||
software: 'Faucet',
|
version: '',
|
||||||
version: ''
|
status: 'Loading'
|
||||||
|
},
|
||||||
|
status: {
|
||||||
|
ok: false,
|
||||||
|
network: false,
|
||||||
|
contracts: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const stateMockIncomplete = {
|
const stateMockIncomplete = {
|
||||||
commons: { software: 'Commons', version: commonsVersion },
|
commons: {
|
||||||
squidJs: {
|
name: 'Commons',
|
||||||
software: 'Squid-js',
|
version: commonsVersion
|
||||||
version: versionSquid
|
},
|
||||||
|
squid: {
|
||||||
|
name: 'Squid-js',
|
||||||
|
version: undefined
|
||||||
},
|
},
|
||||||
aquarius: {
|
aquarius: {
|
||||||
isLoading: false,
|
name: 'Aquarius',
|
||||||
software: 'Aquarius',
|
|
||||||
version: undefined
|
version: undefined
|
||||||
},
|
},
|
||||||
brizo: {
|
brizo: {
|
||||||
isLoading: false,
|
name: 'Brizo',
|
||||||
software: 'Brizo',
|
|
||||||
version: undefined,
|
version: undefined,
|
||||||
contracts: undefined,
|
contracts: undefined,
|
||||||
network: undefined,
|
network: undefined,
|
||||||
'keeper-version': undefined,
|
keeperVersion: undefined,
|
||||||
'keeper-url': undefined
|
keeperUrl: undefined
|
||||||
},
|
|
||||||
keeperContracts: {
|
|
||||||
isLoading: false,
|
|
||||||
software: 'Keeper Contracts',
|
|
||||||
version: undefined,
|
|
||||||
contracts: undefined,
|
|
||||||
network: undefined
|
|
||||||
},
|
},
|
||||||
faucet: {
|
faucet: {
|
||||||
isLoading: false,
|
name: 'Faucet',
|
||||||
software: 'Faucet',
|
|
||||||
version: undefined
|
version: undefined
|
||||||
|
},
|
||||||
|
status: {
|
||||||
|
ok: false,
|
||||||
|
network: false,
|
||||||
|
contracts: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const mockResponse = {
|
const mockResponse = {
|
||||||
data: {
|
data: {
|
||||||
software: 'Brizo',
|
software: 'Faucet',
|
||||||
version: '6.6.6',
|
version: '6.6.6'
|
||||||
contracts: { Hello: 'Hello', Another: 'Hello' },
|
|
||||||
network: 'hello',
|
|
||||||
'keeper-url': 'https://squid.com',
|
|
||||||
'keeper-version': '6.6.6'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user