test: sync configured api address

This commit is contained in:
rain
2026-07-11 09:27:48 +08:00
parent 9769401b10
commit 68f72eb960
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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');
+1 -1
View File
@@ -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',