Heracles/tests/Tap.d.js
Jeremy Wall a84326cb67 testing: Add minimal javascript testing framework
* Vendor the test-tap library
* Set up a browser harness
* Add some tests to the test suite
2024-04-07 16:25:08 -04:00

21 lines
368 B
JavaScript

/** @interface */
class TapRenderer {
/** Renders output for the test results
* @param {string} text
*/
out(text) {
}
/** Diagnostic formatter for TAP Output.
*
* @param {Array<string>} lines
*/
comment(lines) {
}
}
/**
* @typedef TapSuite
* @type {Array<{'plan': Number, name: string, 'test': function(Tap)}}
*/