diff --git a/client/src/components/molecules/VersionNumbers/index.test.tsx b/client/src/components/molecules/VersionNumbers/index.test.tsx index 6cb97dd..1aad7c9 100644 --- a/client/src/components/molecules/VersionNumbers/index.test.tsx +++ b/client/src/components/molecules/VersionNumbers/index.test.tsx @@ -10,81 +10,71 @@ afterEach(() => { }) const stateMock = { - commons: { software: 'Commons', version: commonsVersion }, - squidJs: { - software: 'Squid-js', - version: versionSquid + commons: { + name: 'Commons', + version: commonsVersion + }, + squid: { + name: 'Squid-js', + status: 'Loading' }, aquarius: { - isLoading: false, - software: 'Aquarius', - version: '' + name: 'Aquarius', + status: 'Loading' }, brizo: { - isLoading: false, - software: 'Brizo', - version: '', - contracts: {}, - network: '', - 'keeper-version': '0.0.0', - 'keeper-url': '' - }, - keeperContracts: { - isLoading: false, - software: 'Keeper Contracts', - version: '', - contracts: {}, - network: '' + name: 'Brizo', + network: 'Nile', + status: 'Loading' }, faucet: { - isLoading: false, - software: 'Faucet', - version: '' + name: 'Faucet', + version: '', + status: 'Loading' + }, + status: { + ok: false, + network: false, + contracts: false } } const stateMockIncomplete = { - commons: { software: 'Commons', version: commonsVersion }, - squidJs: { - software: 'Squid-js', - version: versionSquid + commons: { + name: 'Commons', + version: commonsVersion + }, + squid: { + name: 'Squid-js', + version: undefined }, aquarius: { - isLoading: false, - software: 'Aquarius', + name: 'Aquarius', version: undefined }, brizo: { - isLoading: false, - software: 'Brizo', + name: 'Brizo', version: undefined, contracts: undefined, network: undefined, - 'keeper-version': undefined, - 'keeper-url': undefined - }, - keeperContracts: { - isLoading: false, - software: 'Keeper Contracts', - version: undefined, - contracts: undefined, - network: undefined + keeperVersion: undefined, + keeperUrl: undefined }, faucet: { - isLoading: false, - software: 'Faucet', + name: 'Faucet', version: undefined + }, + status: { + ok: false, + network: false, + contracts: false } } const mockResponse = { data: { - software: 'Brizo', - version: '6.6.6', - contracts: { Hello: 'Hello', Another: 'Hello' }, - network: 'hello', - 'keeper-url': 'https://squid.com', - 'keeper-version': '6.6.6' + software: 'Faucet', + version: '6.6.6' } }