mirror of
https://github.com/apache/superset.git
synced 2026-05-11 10:55:43 +00:00
test(frontend): Migrate from describe/it to flat test() pattern (#35305)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -21,12 +21,13 @@ import { getChartDataUri } from '.';
|
||||
|
||||
jest.mock('src/utils/pathUtils');
|
||||
|
||||
// eslint-disable-next-line no-restricted-globals -- TODO: Migrate from describe blocks
|
||||
describe('Get ChartUri', () => {
|
||||
(ensureAppRoot as jest.Mock).mockImplementation(
|
||||
(path: string) => `/prefix${path}`,
|
||||
);
|
||||
|
||||
it('Get ChartUri when allowDomainSharding:false', () => {
|
||||
test('Get ChartUri when allowDomainSharding:false', () => {
|
||||
expect(
|
||||
getChartDataUri({
|
||||
path: '/path',
|
||||
@@ -53,7 +54,7 @@ describe('Get ChartUri', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('Get ChartUri when allowDomainSharding:true', () => {
|
||||
test('Get ChartUri when allowDomainSharding:true', () => {
|
||||
expect(
|
||||
getChartDataUri({
|
||||
path: '/path-allowDomainSharding-true',
|
||||
|
||||
Reference in New Issue
Block a user