Open augustl opened 10 years ago
If a test or implementation does this:
throw new Error("Hello, world");
The reporters will print:
"Error: Hello, world"
throw "Hello, world";
The reporters will print (in the same color as the error above):
undefined
Should you even be throwing strings around?
Maybe not, but you can. Thus we should be able to handle that, in my opinon. A colored output of "undefined" feels like a bug.
If a test or implementation does this:
The reporters will print:
If a test or implementation does this:
The reporters will print (in the same color as the error above):