From 68f72eb960503974358bb7f7f45fc5bdcff34e60 Mon Sep 17 00:00:00 2001 From: rain Date: Sat, 11 Jul 2026 09:27:48 +0800 Subject: [PATCH] test: sync configured api address --- tests/config.test.js | 4 ++-- tests/utils.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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',