Skip to content

Commit 460b651

Browse files
committed
refactor: fix tests
1 parent b07068c commit 460b651

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

projects/components/src/filtering/filter/parser/filter-parser-lookup.service.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,18 @@ describe('Filter Parser Lookup service', () => {
180180
value: 'myString'
181181
});
182182

183+
expect(
184+
spectator.service.lookup(FilterOperator.In).parseSplitFilter({
185+
attribute: getTestFilterAttribute(FilterAttributeType.StringArray),
186+
operator: FilterOperator.In,
187+
rhs: 'myStr, myString'
188+
})
189+
).toEqual({
190+
field: 'stringArrayAttribute',
191+
operator: FilterOperator.In,
192+
value: ['myStr', 'myString']
193+
});
194+
183195
expect(
184196
spectator.service.lookup(FilterOperator.In).parseSplitFilter({
185197
attribute: getTestFilterAttribute(FilterAttributeType.String),

0 commit comments

Comments
 (0)