Tests fixes

pull/1384/head
ShahanaFarooqui 1 month ago
parent 3f531369b1
commit 687ef14405

@ -22,7 +22,7 @@ export class mockLoggerService {
export class mockHttpClient { export class mockHttpClient {
post(url: string) { post(url: string) {
return of(new HttpResponse(mockResponseData.setSelectedNodeSuccess)); return of(new HttpResponse({ status: 200, body: mockResponseData.setSelectedNodeSuccess }));
} }
} }

@ -724,9 +724,31 @@ export const mockResponseData = {
} }
], ],
setSelectedNodeSuccess: { setSelectedNodeSuccess: {
status: 200, index: 1,
body: { lnNode: 'Node 1',
status: 'Selected Node Updated To: LN Node Name!' lnImplementation: 'LND',
authentication: {
configPath: '/user/.lnd/lnd.conf',
swapMacaroonPath: '/user/.loop',
boltzMacaroonPath: '/user/.boltz'
},
settings: {
blockExplorerUrl: 'https://mempool.space/',
lnServerUrl: 'https://localhost:8080',
userPersona: 'MERCHANT',
themeMode: 'NIGHT',
themeColor: 'TEAL',
unannouncedChannels: true,
logLevel: 'DEBUG',
fiatConversion: true,
currencyUnit: 'CAD',
swapServerUrl: 'https://localhost:8081',
boltzServerUrl: 'https://localhost:9003',
enableOffers: false,
enablePeerswap: false,
bitcoindConfigPath: '',
channelBackupPath: '/user/RTL/channels-backup/node-1',
logFile: '/user/RTL/logs/RTL-Node-1.log'
} }
}, },
error401: { error401: {
@ -774,36 +796,37 @@ export const mockActionsData = {
lnImplementation: 'LND' lnImplementation: 'LND'
}, },
setSelectedNode: { setSelectedNode: {
index: 1,
lnNode: 'Node 1',
lnImplementation: 'LND',
authentication: {
configPath: '/user/.lnd/lnd.conf',
swapMacaroonPath: '/user/.loop',
boltzMacaroonPath: '/user/.boltz'
},
settings: { settings: {
blockExplorerUrl: 'https://mempool.space/',
lnServerUrl: 'https://localhost:8080',
userPersona: 'MERCHANT', userPersona: 'MERCHANT',
themeMode: 'NIGHT', themeMode: 'NIGHT',
themeColor: 'TEAL', themeColor: 'TEAL',
unannouncedChannels: false, unannouncedChannels: true,
logLevel: 'DEBUG',
fiatConversion: true, fiatConversion: true,
currencyUnits: [ currencyUnit: 'CAD',
'BTC', swapServerUrl: 'https://localhost:8081',
'SATS', boltzServerUrl: 'https://localhost:9003',
'USD'
],
bitcoindConfigPath: '',
enableLogging: true,
lnServerUrl: '',
swapServerUrl: '',
boltzServerUrl: '',
channelBackupPath: '',
currencyUnit: '',
enableOffers: false, enableOffers: false,
enablePeerswap: false, enablePeerswap: false,
blockExplorerUrl: 'https://mempool.space' bitcoindConfigPath: '',
}, channelBackupPath: '/user/RTL/channels-backup/node-1',
authentication: { logFile: '/user/RTL/logs/RTL-Node-1.log',
swapMacaroonPath: '', currencyUnits: [
boltzMacaroonPath: '', 'Sats',
configPath: '' 'BTC',
}, 'CAD'
index: 1, ]
lnNode: 'LN Node Name', }
lnImplementation: 'LND'
}, },
errorSendPaymentStatus: { errorSendPaymentStatus: {
action: 'SendPayment', action: 'SendPayment',
@ -958,7 +981,7 @@ export const mockRTLStoreState = {
lnServerUrl: 'http://127.0.0.1:9090', lnServerUrl: 'http://127.0.0.1:9090',
swapServerUrl: '', swapServerUrl: '',
boltzServerUrl: '', boltzServerUrl: '',
channelBackupPath: '..\\\\RTL\\\\backup\\\\node-3', channelBackupPath: '..\\\\RTL\\\\backup\\\\node-1',
currencyUnit: 'USD', currencyUnit: 'USD',
currencyUnits: [ currencyUnits: [
'Sats', 'Sats',

Loading…
Cancel
Save