HTML reporter: show debug logs with white-space: pre

This commit is contained in:
Steve Gravrock
2024-06-22 11:24:56 -07:00
parent c3960c4a96
commit ba7560f65e
5 changed files with 19 additions and 2 deletions

View File

@@ -159,6 +159,8 @@ describe('ExceptionFormatter', function() {
jasmineFile: jasmine.util.jasmineFile()
});
const result = subject.stack(error);
jasmine.debugLog('Original stack trace: ' + error.stack);
jasmine.debugLog('Filtered stack trace: ' + result);
const lines = result.split('\n');
if (lines[0].match(/an error/)) {