improve TAP output

This commit is contained in:
Florian Dold 2016-11-08 16:56:58 +01:00
parent 350367d399
commit 25e446e405

View File

@ -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 || "-"}`);
}
}
}