feat: enhance Druid integration and improve user management features
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getProductionApiBaseUrl, normalizePublicUrl } from '@/utils/publicUrl';
|
||||
import { getDruidIndexUrl, getProductionApiBaseUrl, normalizePublicUrl } from '@/utils/publicUrl';
|
||||
|
||||
describe('public URL helpers', () => {
|
||||
it('builds the production API base URL from the browser origin', () => {
|
||||
@@ -7,6 +7,12 @@ describe('public URL helpers', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('builds the Druid index URL from the public API base URL', () => {
|
||||
expect(getDruidIndexUrl('http://47.111.103.66')).toBe(
|
||||
'http://47.111.103.66/api/shihezi/druid/index.html',
|
||||
);
|
||||
});
|
||||
|
||||
it('replaces an internal backend origin with the browser origin', () => {
|
||||
expect(
|
||||
normalizePublicUrl(
|
||||
|
||||
Reference in New Issue
Block a user