rewire
rewire copied to clipboard
How to use rewire test closure function?
Hi, how to test closure function ? The closure function don't export.
The closure like as:
module.exports = function(CheckCode) {
var sum = (a, b) => {
return a + b;
}
....
};
This is not supported by rewire. See the limitations section in the readme. I don't think it is possible to overcome this limitation.
Thanks