mirror of
https://github.com/status-im/safe-react.git
synced 2025-03-03 02:40:43 +00:00
Update tests
This commit is contained in:
parent
7a4e86fda4
commit
7a186026cd
@ -109,21 +109,20 @@ describe('Config Services', () => {
|
|||||||
// When
|
// When
|
||||||
const txServiceUrl = getTxServiceUrl()
|
const txServiceUrl = getTxServiceUrl()
|
||||||
const safeAppsUrl = getGnosisSafeAppsUrl()
|
const safeAppsUrl = getGnosisSafeAppsUrl()
|
||||||
|
|
||||||
// Then
|
// Then
|
||||||
expect(TX_SERVICE_URL).toBe(txServiceUrl)
|
expect(TX_SERVICE_URL).toBe(txServiceUrl)
|
||||||
expect(SAFE_APPS_URL).toBe(safeAppsUrl)
|
expect(SAFE_APPS_URL).toBe(safeAppsUrl)
|
||||||
})
|
})
|
||||||
|
|
||||||
it(`should default to 'xdai.production' network config if no environment is found`, () => {
|
it(`should default to 'xdai.dev' network config if no environment is found`, () => {
|
||||||
// Given
|
// Given
|
||||||
jest.mock('src/utils/constants', () => ({
|
jest.mock('src/utils/constants', () => ({
|
||||||
NODE_ENV: '',
|
NODE_ENV: '',
|
||||||
NETWORK: 'XDAI',
|
NETWORK: 'XDAI',
|
||||||
}))
|
}))
|
||||||
const { getTxServiceUrl, getGnosisSafeAppsUrl } = require('src/config')
|
const { getTxServiceUrl, getGnosisSafeAppsUrl } = require('src/config')
|
||||||
const TX_SERVICE_URL = xdai.environment.production.txServiceUrl
|
const TX_SERVICE_URL = xdai.environment.dev?.txServiceUrl
|
||||||
const SAFE_APPS_URL = xdai.environment.production.safeAppsUrl
|
const SAFE_APPS_URL = xdai.environment.dev?.safeAppsUrl
|
||||||
|
|
||||||
// When
|
// When
|
||||||
const txServiceUrl = getTxServiceUrl()
|
const txServiceUrl = getTxServiceUrl()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user