Ring bell on test error if interactive shell
This commit is contained in:
parent
5cd3ab22ba
commit
b9444892a0
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ function Reporter(runner) {
|
|||
dump("\r" + indentStr
|
||||
// Dark red X for errors
|
||||
+ "\033[31;40m" + Mocha.reporters.Base.symbols.err + " [FAIL]\033[0m"
|
||||
// Trigger bell if interactive
|
||||
+ (Zotero.noUserInput ? "" : "\007")
|
||||
+ " " + test.title + "\n"
|
||||
+ indentStr + " " + err.toString() + " at\n"
|
||||
+ err.stack.replace(/^/gm, indentStr + " "));
|
||||
|
|
Loading…
Reference in a new issue