(testFn)
| 1 | const versions = ['default', 'v4']; |
| 2 | |
| 3 | function withV4(testFn) { |
| 4 | versions.forEach(version => { |
| 5 | let config; |
| 6 | |
| 7 | if (version === 'v4') { |
| 8 | config = { |
| 9 | signatureVersion: version, |
| 10 | }; |
| 11 | } else { |
| 12 | config = {}; |
| 13 | } |
| 14 | |
| 15 | describe(`With ${version} signature`, (cfg => |
| 16 | function tcWrap() { |
| 17 | testFn.call(this, cfg); |
| 18 | } |
| 19 | )(config)); |
| 20 | }); |
| 21 | } |
| 22 | |
| 23 | module.exports = withV4; |
no outgoing calls
no test coverage detected