chore: Migrate /superset/favstar to API v1 (#23165)

Co-authored-by: hughhhh <hughmil3s@gmail.com>
This commit is contained in:
Diego Medina
2023-03-29 17:42:23 -03:00
committed by GitHub
parent 97b5cdd588
commit f2be53dd53
19 changed files with 548 additions and 45 deletions

View File

@@ -91,7 +91,9 @@ jest.mock('lodash/debounce', () => ({
fetchMock.post('glob:*/api/v1/explore/form_data*', { key: KEY });
fetchMock.put('glob:*/api/v1/explore/form_data*', { key: KEY });
fetchMock.get('glob:*/api/v1/explore/form_data*', {});
fetchMock.get('glob:*/favstar/slice*', { count: 0 });
fetchMock.get('glob:*/api/v1/chart/favorite_status*', {
result: [{ value: true }],
});
const defaultPath = '/explore/';
const renderWithRouter = ({