From 69dcaa82b45ba910840f4af9c298342a51dd1a43 Mon Sep 17 00:00:00 2001 From: jamaljsr <1356600+jamaljsr@users.noreply.github.com> Date: Fri, 7 Feb 2020 11:29:25 -0500 Subject: [PATCH] feat(lnd): add LND v0.9.0-beta to constants file --- src/components/network/NetworkView.spec.tsx | 7 ++++++- src/utils/constants.ts | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/network/NetworkView.spec.tsx b/src/components/network/NetworkView.spec.tsx index d64d569..f0c5f27 100644 --- a/src/components/network/NetworkView.spec.tsx +++ b/src/components/network/NetworkView.spec.tsx @@ -4,6 +4,7 @@ import { fireEvent, wait, waitForElement } from '@testing-library/dom'; import { createMemoryHistory } from 'history'; import { Status } from 'shared/types'; import { initChartFromNetwork } from 'utils/chart'; +import { defaultRepoState } from 'utils/constants'; import { getNetwork, injections, @@ -137,7 +138,11 @@ describe('NetworkView Component', () => { }); it('should not display a message if the docker images are found', async () => { - const images = ['bitcoind:0.19.0.1', 'lnd:0.8.2-beta', 'clightning:0.8.0']; + const images = [ + `lnd:${defaultRepoState.images.LND.latest}`, + `clightning:${defaultRepoState.images['c-lightning'].latest}`, + `bitcoind:${defaultRepoState.images.bitcoind.latest}`, + ]; const { queryByText } = renderComponent('1', Status.Stopped, images); expect( queryByText( diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 3668509..09a5d40 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -113,11 +113,12 @@ export const defaultRepoState: DockerRepoState = { version: 2, images: { LND: { - latest: '0.8.2-beta', - versions: ['0.8.2-beta', '0.8.0-beta', '0.7.1-beta'], + latest: '0.9.0-beta', + versions: ['0.9.0-beta', '0.8.2-beta', '0.8.0-beta', '0.7.1-beta'], // not all LND versions are compatible with all bitcoind versions. // this mapping specifies the highest compatible bitcoind for each LND version compatibility: { + '0.9.0-beta': '0.19.0.1', '0.8.2-beta': '0.19.0.1', '0.8.0-beta': '0.18.1', '0.7.1-beta': '0.18.1',