improve TAP output
This commit is contained in:
parent
350367d399
commit
25e446e405
@ -91,10 +91,10 @@ export async function run() {
|
|||||||
if (!passed) {
|
if (!passed) {
|
||||||
throw Error("test did not call 'pass'");
|
throw Error("test did not call 'pass'");
|
||||||
}
|
}
|
||||||
console.log(`ok ${Number(i) + 1} ${lastMsg}`);
|
console.log(`ok ${Number(i) + 1} ${lastMsg || "-"}`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
console.log(`not ok ${Number(i) + 1} ${lastMsg}`);
|
console.log(`not ok ${Number(i) + 1} ${lastMsg || "-"}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user