| Summary: | TypeError running JS units tests | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | Client | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 8.0 | ||
| Target Milestone: | 9.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
While running the tests for the eslint 0.15.1 update I kept getting an exception in sauce.js: "TypeError: Cannot read property 'length' of undefined at tooBig (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/sauce.js:77:38) at pruneReports (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/sauce.js:84:33) at Runner.<anonymous> (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/sauce.js:120:5) at Runner.require.register.EventEmitter.emit (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:588:20) at http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4938:10 at http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4872:7 at next (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4601:23) at http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:4630:5 at timeslice (http://mrennie-unit-tests.orion.eclipse.org:9000/mocha/mocha.js:5761:27)" Looks like if there are no results, this function fails: function tooBig(mochaResults) { return JSON.stringify(mochaResults).length >= 64000 ; }