Commit 3cdc0b7
fix(dashboard): correct waitForAsyncData mock types in FiltersConfigForm test
- Fix asyncResolve type from MockChartDataResponse to unknown[] to match waitForAsyncData return type
- Fix asyncPromise type from Promise<MockChartDataResponse> to Promise<unknown[]>
- Replace createMockChartResponse() call with correct result array structure
waitForAsyncData returns Promise<ChartDataResponseResult[]> (array of results), not the full response wrapper object.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 71ce65b commit 3cdc0b7
1 file changed
Lines changed: 9 additions & 3 deletions
File tree
- superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
639 | | - | |
| 638 | + | |
| 639 | + | |
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
680 | 686 | | |
681 | 687 | | |
682 | 688 | | |
| |||
0 commit comments