Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Jun 24, 2024
1 parent 52c583c commit 74aff81
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/queryBuilder/GroupBy.test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import React from 'react';
import { render } from '@testing-library/react';
import { GroupByEditor } from './GroupBy';
import {selectors} from "../../selectors";
import { selectors } from '../../selectors';

describe('GroupByEditor', () => {
it('renders correctly', () => {
const result = render(<GroupByEditor fieldsList={[]} groupBy={[]} onGroupByChange={() => {}} labelAndTooltip={selectors.components.QueryEditor.QueryBuilder.SAMPLE_BY} />);
const result = render(
<GroupByEditor
fieldsList={[]}
groupBy={[]}
onGroupByChange={() => {}}
isDisabled={false}
labelAndTooltip={selectors.components.QueryEditor.QueryBuilder.SAMPLE_BY}
/>
);
expect(result.container.firstChild).not.toBeNull();
});
});

0 comments on commit 74aff81

Please sign in to comment.