Added some tests
This commit is contained in:
18
tests/node_modules/tape/test/anonymous-fn/test-wrapper.js
generated
vendored
Normal file
18
tests/node_modules/tape/test/anonymous-fn/test-wrapper.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'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 ...
|
||||
}
|
||||
Reference in New Issue
Block a user