mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
fix: setupPlugin in chart list page (#16413)
* fix: setupPlugin in chart list page * fix the order of setupPlugins call * Fix jest test on loading geojson * add jest changes * fix unit tests Co-authored-by: Jesse Yang <jesse.yang@airbnb.com>
This commit is contained in:
@@ -31,7 +31,7 @@ test('Get ChartUri when allowDomainSharding:false', () => {
|
||||
duplicateQueryParameters: false,
|
||||
escapeQuerySpace: true,
|
||||
fragment: null,
|
||||
hostname: undefined,
|
||||
hostname: 'localhost',
|
||||
password: null,
|
||||
path: '/path',
|
||||
port: '',
|
||||
|
||||
@@ -33,13 +33,13 @@ const createParams = () => ({
|
||||
|
||||
test('Get ExploreUrl with default params', () => {
|
||||
const params = createParams();
|
||||
expect(getExploreUrl(params)).toBe('http:///superset/explore/');
|
||||
expect(getExploreUrl(params)).toBe('http://localhost/superset/explore/');
|
||||
});
|
||||
|
||||
test('Get ExploreUrl with endpointType:full', () => {
|
||||
const params = createParams();
|
||||
expect(getExploreUrl({ ...params, endpointType: 'full' })).toBe(
|
||||
'http:///superset/explore_json/',
|
||||
'http://localhost/superset/explore_json/',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -47,5 +47,5 @@ test('Get ExploreUrl with endpointType:full and method:GET', () => {
|
||||
const params = createParams();
|
||||
expect(
|
||||
getExploreUrl({ ...params, endpointType: 'full', method: 'GET' }),
|
||||
).toBe('http:///superset/explore_json/');
|
||||
).toBe('http://localhost/superset/explore_json/');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user