• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / javascript-sdk / 1240 / 10
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 29 Jan 2020 11:02PM UTC
Files 59
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jan 2020 10:53PM UTC coverage: 97.415% (-0.005%) from 97.42%
1240.10

push

travis-ci

web-flow
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

637 of 703 branches covered (90.61%)

Branch coverage included in aggregate %.

6675 of 6803 relevant lines covered (98.12%)

23.22 hits per line

Source Files on job 1240.10
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 942
  • Travis Job 1240.10
  • bc84698e on github
  • Prev Job for on master (#1238.2)
  • Next Job for on master (#1250.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc