mirror of
https://github.com/apache/superset.git
synced 2026-05-10 10:25:51 +00:00
fix: remove unused StringConstructor from return type
Address review feedback from @michael-s-molina: Since the function no longer returns String, remove StringConstructor from the return type and update the misleading test description. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,9 +74,7 @@ describe('getXAxisFormatter', () => {
|
||||
expect(formatter).toEqual(expectedFormatter);
|
||||
});
|
||||
|
||||
it('should return String constructor as fallback', () => {
|
||||
// This test verifies that the String constructor is returned
|
||||
// Note: the current logic may not reach this case, but keeping for completeness
|
||||
it('should return undefined for falsy values', () => {
|
||||
const formatter = getXAxisFormatter(null as any);
|
||||
expect(formatter).toBeUndefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user