Skip to content

Commit

Permalink
[backend] fix targetEntity and sourceEntity filters (#6350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archidoit committed Mar 14, 2024
1 parent b734e6b commit b157d70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('Filter keys schema generation testing', async () => {
expect(filterDefinition?.type).toEqual('id');
expect(filterDefinition?.label).toEqual('Source entity');
expect(filterDefinition?.elementsForFilterValuesSearch.length).toEqual(2);
expect(filterDefinition?.elementsForFilterValuesSearch[0]).toEqual(ABSTRACT_BASIC_OBJECT);
expect(filterDefinition?.elementsForFilterValuesSearch[0]).toEqual(ABSTRACT_STIX_CORE_OBJECT);
// 'toTypes' for relationships
filterDefinition = filterKeysSchema.get(ABSTRACT_STIX_CORE_RELATIONSHIP)?.get('toTypes');
expect(filterDefinition?.filterKey).toEqual('toTypes');
Expand Down

0 comments on commit b157d70

Please sign in to comment.