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