1
0
Fork 0

Improve error reporting of "single" test target.

This commit is contained in:
Max Neunhoeffer 2014-02-24 14:59:12 +01:00
parent 826714c1b3
commit 5a37b46cab
1 changed files with 2 additions and 1 deletions

View File

@ -973,7 +973,8 @@ function UnitTest (which, options) {
rr[which] = r = testFuncs[which](options);
ok = true;
for (i in r) {
if (r.hasOwnProperty(i)) {
if (r.hasOwnProperty(i) &&
(which !== "single" || i !== "test")) {
if (r[i] !== 0 && r[i] !== true) {
ok = false;
}