mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
fix: updated mocha tests to display error messages (#7706)
* fix: updated mocha tests to display error messages * fix: replaced double quotes with single quotes
This commit is contained in:
committed by
GitHub
parent
f7e6f5cfb1
commit
3e75f4f6f6
@@ -63,7 +63,8 @@ async function runMochaTestsInBrowser() {
|
||||
console.log('There is at least one test failure, but no messages reported. Mocha may be failing because no tests are being run.');
|
||||
}
|
||||
for (const el of failureMessagesEls) {
|
||||
console.log(await el.getText());
|
||||
const messageHtml = await el.getHTML();
|
||||
console.log(messageHtml.replace('<p>', '').replace('</p>', ''));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user