Skip to content

Commit

Permalink
Clean up name
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Jul 8, 2024
1 parent 1ef8e39 commit be2636d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const dashboardApi = {
timeRange$: new BehaviorSubject<TimeRange | undefined>(undefined),
lastUsedDataViewId$: new BehaviorSubject<string>(mockDataView.id!),
};
const mockedControlGroupApi = {
const controlGroupApi = {
parentApi: dashboardApi,
grow: new BehaviorSubject(DEFAULT_CONTROL_GROW),
width: new BehaviorSubject(DEFAULT_CONTROL_WIDTH),
Expand All @@ -76,7 +76,7 @@ describe('Data control editor', () => {
<DataControlEditor
onCancel={() => {}}
onSave={() => {}}
parentApi={mockedControlGroupApi}
parentApi={controlGroupApi}
initialState={{
dataViewId: dashboardApi.lastUsedDataViewId$.getValue(),
...initialState,
Expand Down Expand Up @@ -106,9 +106,9 @@ describe('Data control editor', () => {

beforeAll(() => {
const mockRegistry = {
search: getMockedSearchControlFactory({ parentApi: mockedControlGroupApi }),
optionsList: getMockedOptionsListControlFactory({ parentApi: mockedControlGroupApi }),
rangeSlider: getMockedRangeSliderControlFactory({ parentApi: mockedControlGroupApi }),
search: getMockedSearchControlFactory({ parentApi: controlGroupApi }),
optionsList: getMockedOptionsListControlFactory({ parentApi: controlGroupApi }),
rangeSlider: getMockedRangeSliderControlFactory({ parentApi: controlGroupApi }),
};
(getAllControlTypes as jest.Mock).mockReturnValue(Object.keys(mockRegistry));
(getControlFactory as jest.Mock).mockImplementation((key) => mockRegistry[key]);
Expand Down

0 comments on commit be2636d

Please sign in to comment.