diff --git a/tests/config.test.js b/tests/config.test.js index 2743312..71d9f7a 100644 --- a/tests/config.test.js +++ b/tests/config.test.js @@ -10,7 +10,7 @@ const developmentConfig = configFactory({ assert.deepStrictEqual(developmentConfig.getConfig(), { environment: 'development', - apiBaseUrl: 'http://test-genealogy-api.ddxcjp.cn' + apiBaseUrl: 'http://182.61.18.23:8080' }); assert.strictEqual(developmentConfig.getClientId, undefined); assert.strictEqual(developmentConfig.getTenantId, undefined); @@ -25,6 +25,6 @@ const productionConfig = configFactory({ }); assert.strictEqual(productionConfig.getEnvironment(), 'production'); -assert.strictEqual(productionConfig.getApiBaseUrl(), 'http://test-genealogy-api.ddxcjp.cn'); +assert.strictEqual(productionConfig.getApiBaseUrl(), 'http://182.61.18.23:8080'); console.log('config tests passed'); diff --git a/tests/utils.test.js b/tests/utils.test.js index 7a2f692..88b4cb4 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -28,7 +28,7 @@ assert.strictEqual(StorageUtil.read(storage, 'token'), null); const calls = []; const requester = AxiosRequestUtil.createRequester({ - baseUrl: 'https://test-genealogy-api.ddxcjp.cn', + baseUrl: 'http://182.61.18.23:8080', clientId: 'pc-client', tokenHeaderName: 'Authorization', getToken: () => 'token-x',