19 lines
295 B
JavaScript
19 lines
295 B
JavaScript
'use strict';
|
|
|
|
// 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 ...
|
|
}
|