mirror of
https://github.com/apache/superset.git
synced 2026-09-01 13:01:33 +00:00
chore: Migrate /superset/user_slices and /superset/fave_slices to API v1 (#22964)
Co-authored-by: hughhhh <hughmil3s@gmail.com>
This commit is contained in:
+5
-3
@@ -40,9 +40,11 @@ beforeAll(() => {
|
||||
result: [{ label: 'Chart A', value: 'a' }],
|
||||
});
|
||||
|
||||
fetchMock.get('glob:*/superset/user_slices*', [
|
||||
{ id: 'a', title: 'Chart A', viz_type: 'table', data: {} },
|
||||
]);
|
||||
fetchMock.get('glob:*/api/v1/chart/*', {
|
||||
result: [
|
||||
{ id: 'a', slice_name: 'Chart A', viz_type: 'table', form_data: {} },
|
||||
],
|
||||
});
|
||||
|
||||
setupColors();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user