fix(sqllab): Replace autocomplete logic by a hook (#24677)

This commit is contained in:
JUST.in DO IT
2023-07-26 11:24:28 -07:00
committed by GitHub
parent 83ad291053
commit 77505173ae
9 changed files with 541 additions and 186 deletions

View File

@@ -47,6 +47,9 @@ jest.mock('src/components/AsyncAceEditor', () => ({
}));
jest.mock('src/SqlLab/components/SqlEditorLeftBar', () => jest.fn());
fetchMock.get('glob:*/api/v1/database/*/function_names/', {
function_names: [],
});
fetchMock.get('glob:*/api/v1/database/*', { result: [] });
fetchMock.get('glob:*/api/v1/database/*/tables/*', { options: [] });
fetchMock.post('glob:*/sqllab/execute/*', { result: [] });