test-wrapper.js 265 B

123456789101112131415161718
  1. 'use strict';
  2. function setUp() {
  3. // ... example ...
  4. }
  5. function tearDown() {
  6. // ... example ...
  7. }
  8. // Example of wrapper function that would invoke tape
  9. module.exports = function (testCase) {
  10. return function (t) {
  11. setUp();
  12. testCase(t);
  13. tearDown();
  14. };
  15. };