Errors unit test
Closed this issue · 1 comments
hermanfransen commented
Thanks for this, very helpful....
I get errors doing npm test
although test finished completed:
ts-loader: Using typescript@1.8.9 and tsconfig.json
31 03 2016 13:21:09.416:WARN [karma]: No captured browser, open http://localhost:9876/
31 03 2016 13:21:09.429:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
31 03 2016 13:21:09.438:INFO [launcher]: Starting browser Chrome
31 03 2016 13:21:10.716:INFO [Chrome 49.0.2623 (Mac OS X 10.11.3)]: Connected on socket /#T5aZfz_fJpOAMj-gAAAA with id 92141791
START:
ERROR: 'Unhandled Promise rejection:', 's.replace is not a function', '; Zone:', '<root>', '; Task:', 'Promise.then', '; Value:', TypeError{}
ERROR: Error{rejection: TypeError{}, promise: ZoneAwarePromise{__zone_symbol__state: 0, __zone_symbol__value: TypeError{}}, zone: Zone{_properties: Object{}, _parent: null, _name: '<root>', _zoneDelegate: ZoneDelegate{_taskCounts: ..., zone: ..., _parentDelegate: ..., _forkZS: ..., _forkDlgt: ..., _interceptZS: ..., _interceptDlgt: ..., _invokeZS: ..., _invokeDlgt: ..., _handleErrorZS: ..., _handleErrorDlgt: ..., _scheduleTaskZS: ..., _scheduleTaskDlgt: ..., _invokeTaskZS: ..., _invokeTaskDlgt: ..., _cancelTaskZS: ..., _cancelTaskDlgt: ..., _hasTaskZS: ..., _hasTaskDlgt: ...}}, task: ZoneTask{runCount: 1, type: 'microTask', zone: Zone{_properties: ..., _parent: ..., _name: ..., _zoneDelegate: ...}, source: 'Promise.then', data: undefined, scheduleFn: undefined, cancelFn: null, callback: function () { ... }, invoke: function () { ... }}}
App
✔ should be able to test
Finished in 0.084 secs / 0.078 secs
SUMMARY:
✔ 1 test completed
wkwiatek commented
Thanks for reporting!
The very last commit on master resolves that issue.