From 7a186026cd2bdb596c76e31936b8e5c8cba643d8 Mon Sep 17 00:00:00 2001 From: Mati Dastugue Date: Wed, 2 Jun 2021 23:42:56 -0300 Subject: [PATCH] Update tests --- src/config/__tests__/config.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/config/__tests__/config.test.ts b/src/config/__tests__/config.test.ts index e9a6ef40..dfcae6c8 100644 --- a/src/config/__tests__/config.test.ts +++ b/src/config/__tests__/config.test.ts @@ -109,21 +109,20 @@ describe('Config Services', () => { // When const txServiceUrl = getTxServiceUrl() const safeAppsUrl = getGnosisSafeAppsUrl() - // Then expect(TX_SERVICE_URL).toBe(txServiceUrl) 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 jest.mock('src/utils/constants', () => ({ NODE_ENV: '', NETWORK: 'XDAI', })) const { getTxServiceUrl, getGnosisSafeAppsUrl } = require('src/config') - const TX_SERVICE_URL = xdai.environment.production.txServiceUrl - const SAFE_APPS_URL = xdai.environment.production.safeAppsUrl + const TX_SERVICE_URL = xdai.environment.dev?.txServiceUrl + const SAFE_APPS_URL = xdai.environment.dev?.safeAppsUrl // When const txServiceUrl = getTxServiceUrl()