Skip to content

Commit

Permalink
re
Browse files Browse the repository at this point in the history
  • Loading branch information
kjain110 committed Dec 16, 2024
1 parent 7f26ec2 commit bba685d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/QueryBuilder/QueryBuilder/helpers/selectOptions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,25 @@ describe('select options', () => {
});
});

it('should return operators with placeholder for jsonb array type', () => {
const options = getOperatorOptions({
dataType: DATA_TYPES.JsonbArrayType,
hasSourceOrValues: false,
intl: intlMock,
});

expectFn({
options,
operators: [
{ label: OPERATORS_LABELS.CONTAINS_ALL, value: OPERATORS.CONTAINS_ALL },
{ label: OPERATORS_LABELS.NOT_CONTAINS_ALL, value: OPERATORS.NOT_CONTAINS_ALL },
{ label: OPERATORS_LABELS.CONTAINS_ANY, value: OPERATORS.CONTAINS_ANY },
{ label: OPERATORS_LABELS.NOT_CONTAINS_ANY, value: OPERATORS.NOT_CONTAINS_ANY },
{ label: OPERATORS_LABELS.EMPTY, value: OPERATORS.EMPTY },
],
});
});

it('should return operators with placeholder for enum type', () => {
const options = getOperatorOptions({
dataType: DATA_TYPES.EnumType,
Expand Down

0 comments on commit bba685d

Please sign in to comment.