aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-08 16:56:58 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-08 16:56:58 +0100
commit25e446e40566530a9c0eeeb2d031bf3c226120bf (patch)
treef1eba5fec12c0579ec1271a6a05e39804e385cbd
parent350367d3991a3063474834108dda1ee4fdebaf52 (diff)
improve TAP output
-rw-r--r--testlib/talertest.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/testlib/talertest.ts b/testlib/talertest.ts
index d420da4a0..097f65b98 100644
--- a/testlib/talertest.ts
+++ b/testlib/talertest.ts
@@ -91,10 +91,10 @@ export async function run() {
if (!passed) {
throw Error("test did not call 'pass'");
}
- console.log(`ok ${Number(i) + 1} ${lastMsg}`);
+ console.log(`ok ${Number(i) + 1} ${lastMsg || "-"}`);
} catch (e) {
console.error(e);
- console.log(`not ok ${Number(i) + 1} ${lastMsg}`);
+ console.log(`not ok ${Number(i) + 1} ${lastMsg || "-"}`);
}
}
}