17 lines
280 B
JavaScript
17 lines
280 B
JavaScript
![]() |
// Example of wrapper function that would invoke tape
|
||
|
module.exports = function (testCase) {
|
||
|
return function (t) {
|
||
|
setUp();
|
||
|
testCase(t);
|
||
|
tearDown();
|
||
|
};
|
||
|
};
|
||
|
|
||
|
function setUp() {
|
||
|
// ... example ...
|
||
|
}
|
||
|
|
||
|
function tearDown() {
|
||
|
// ... example ...
|
||
|
}
|