mirror of
https://github.com/zaphar/test-tap.git
synced 2025-07-22 20:29:49 -04:00
docs: Export and document summarize function
This commit is contained in:
parent
1f6f7f8d16
commit
7e18862cdd
@ -384,6 +384,11 @@ function runTest(t, testName, test) {
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* Output a summary of the tests as comments.
|
||||
*
|
||||
* @param {Tap} t
|
||||
*/
|
||||
function summarize(t) {
|
||||
if (t.planned > t.counter) {
|
||||
t.comment('looks like you planned ' + t.planned + ' tests but only ran '
|
||||
@ -413,5 +418,5 @@ function runSuite(t, suite) {
|
||||
summarize(t);
|
||||
}
|
||||
|
||||
export { Tap, runTest, runSuite, BrowserRenderer, NodeRenderer };
|
||||
export { Tap, runTest, runSuite, summarize, BrowserRenderer, NodeRenderer };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user