Skip to content

Commit

Permalink
feat: fix lint error for scene composer
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-sea authored and mukeshsahay committed May 25, 2023
1 parent f1f81b8 commit 924547f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { setFeatureConfig, setMetricRecorder } from '../../common/GlobalSettings
import { COMPOSER_FEATURES, KnownComponentType } from '../../interfaces';
import { Component } from '../../models/SceneModels';
import { useStore } from '../../store';

import { AddComponentMenu } from './AddComponentMenu';

describe('AddComponentMenu', () => {
Expand Down Expand Up @@ -39,7 +40,7 @@ describe('AddComponentMenu', () => {
],
});

render(<AddComponentMenu/>);
render(<AddComponentMenu />);
const addOverlayButton = screen.getByTestId('add-component-overlay');

act(() => {
Expand Down Expand Up @@ -120,7 +121,7 @@ describe('AddComponentMenu', () => {
expect(screen.getByTestId('add-component-data-binding')).not.toBeNull;
screen.getByTestId('add-component-data-binding').click();
fireEvent.mouseOver(screen.getByTestId('add-component'));
expect(screen.getByTestId('add-component')).not.toContain('Add entity binding');
expect(screen.getByTestId('add-component')).not.toContain('Add entity binding');
});

it('should not see add data binding item when feature is not enabled', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { sceneComposerIdContext } from '../../../common/sceneComposerIdContext';
import { useStore } from '../../../store';
import { IDataBindingComponentInternal } from '../../../store/internalInterfaces';
import { IComponentEditorProps } from '../ComponentEditor';
import { Component } from '../../../models/SceneModels';

import { DataBindingMapEditor } from './common/DataBindingMapEditor';
import { Component } from '../../../models/SceneModels';

export interface IDataBindingComponentEditorProps extends IComponentEditorProps {
component: IDataBindingComponentInternal;
Expand Down

0 comments on commit 924547f

Please sign in to comment.