From 150b55ef773af807424282d3822ed160f5beb785 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 2 Feb 2021 06:33:52 -0800 Subject: [PATCH] Fix test --- .../spec/javascripts/sqllab/SqlEditor_spec.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/superset-frontend/spec/javascripts/sqllab/SqlEditor_spec.jsx b/superset-frontend/spec/javascripts/sqllab/SqlEditor_spec.jsx index eca063c7f4db3..2ba62687c817e 100644 --- a/superset-frontend/spec/javascripts/sqllab/SqlEditor_spec.jsx +++ b/superset-frontend/spec/javascripts/sqllab/SqlEditor_spec.jsx @@ -33,7 +33,10 @@ import ConnectedSouthPane from 'src/SqlLab/components/SouthPane'; import SqlEditor from 'src/SqlLab/components/SqlEditor'; import SqlEditorLeftBar from 'src/SqlLab/components/SqlEditorLeftBar'; import { Dropdown } from 'src/common/components'; -import { queryEditorSetSelectedText } from 'src/SqlLab/actions/sqlLab'; +import { + queryEditorSetFunctionNames, + queryEditorSetSelectedText, +} from 'src/SqlLab/actions/sqlLab'; import { initialState, queries, table } from './fixtures'; @@ -45,7 +48,7 @@ const store = mockStore(initialState); describe('SqlEditor', () => { const mockedProps = { - actions: { queryEditorSetSelectedText }, + actions: { queryEditorSetFunctionNames, queryEditorSetSelectedText }, database: {}, queryEditorId: initialState.sqlLab.queryEditors[0].id, latestQuery: queries[0],