Chaijs test error is of type 'AssertionError' which is not a regular object and cannot be used same as regular 'Error'.
This fix is to display chaijs errors in HTML report.
Also fixes https://github.com/rpii/wdio-html-reporter/issues/66 (AssertionError formating).
Chaijs test error is of type 'AssertionError' which is not a regular object and cannot be used same as regular 'Error'. This fix is to display chaijs errors in HTML report. Also fixes https://github.com/rpii/wdio-html-reporter/issues/66 (AssertionError formating).