Skip to content

Commit bc84698

Browse files
author
James Fox
authored
chore (Regression Test)[CJS-3815]: Add tests for passing in a custom condition evaluator (#389)
## Summary #288 introduced an exploratory new feature, the ability to pass custom condition evaluators to the SDK constructor via the option `UNSTABLE_conditionEvaluators`. The AudienceEvaluator (and its tests) were refactored as a part of that PR, but no tests were added to assert that the `UNSTABLE_conditionEvaluators` worked when passed. This PR introduces tests to ensure that functionality continues to work. ## Test plan Unit tests added to assert that: - You cannot override the built in `custom_attribute` evaluator - A passed in custom condition evaluator will evaluate conditions of that type - That the audience condition, user attributes, and logger instance are all passed to the custom evaluator ## Issues - CJS-3815
1 parent 9039df2 commit bc84698

File tree

1 file changed

+243
-184
lines changed

1 file changed

+243
-184
lines changed

0 commit comments

Comments
 (0)