Improve multiline message output

This commit is contained in:
Mariusz Nowak 2019-08-23 10:35:42 +02:00
parent 0b07508664
commit 418d4e4ae9
No known key found for this signature in database
GPG Key ID: B1FBDA8A182B03F2
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ const writeMessage = (title, message) => {
consoleLog(' ');
if (message) {
consoleLog(` ${message}`);
consoleLog(` ${message.split('\n').join('\n ')}`);
}
consoleLog(' ');

View File

@ -145,7 +145,7 @@ describe('Error', () => {
const message = consoleLogSpy.args.join('\n');
expect(consoleLogSpy.called).to.equal(true);
expect(message).to.have.string(error.stack);
expect(message).to.have.string(error.stack.split('\n').join('\n '));
});
it('should not print stack trace without SLS_DEBUG', () => {