From bba685deddef4cdca61ed092387372ab661afb21 Mon Sep 17 00:00:00 2001 From: Kriti Jain Date: Mon, 16 Dec 2024 23:01:35 +0530 Subject: [PATCH] re --- .../helpers/selectOptions.test.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/QueryBuilder/QueryBuilder/helpers/selectOptions.test.js b/src/QueryBuilder/QueryBuilder/helpers/selectOptions.test.js index e356623e..2cdabbb3 100644 --- a/src/QueryBuilder/QueryBuilder/helpers/selectOptions.test.js +++ b/src/QueryBuilder/QueryBuilder/helpers/selectOptions.test.js @@ -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,