69288dc2b8
This is required for using jasmine-given with the reporter, as that library sets expectations on jasmine.Specs themselves. When the Spec is stringified as JSON, it ends up stringifying the entire Jasmine environment, including previous ExpectationResults. Since those previous ExpectationResults have had their "expected" values stringified, they may include stringified Specs themselves. This leds to exponential growth in the size of stringified Specs. Special-casing jasmine.Spec prevents the exponential growth by short-circuting the value to a small, still-useful String. |
||
---|---|---|
.. | ||
jasmine | ||
lib | ||
jasmine.js |