Fix issues with displaying error messages for afterAll (browser compatibility)
- Switch from showing error stack to showing message/description since only chrome/ff support stack - Fallback to error.description if error.message is undefined - Made exceptionList variable name consistent between both reporters
This commit is contained in:
@@ -232,7 +232,7 @@ describe("ConsoleReporter", function() {
|
||||
reporter.afterAllException(error);
|
||||
reporter.afterAllException(anotherError);
|
||||
reporter.jasmineDone();
|
||||
|
||||
|
||||
expect(out.getOutput()).toMatch(/After All Exception/);
|
||||
expect(out.getOutput()).toMatch(/Some Other Exception/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user