Open ftes opened 6 years ago
This works:
const Swagmock = require('swagmock'); const specMock = Swagmock(apiSpec);
This doesn't:
const swagmock = require('swagmock'); const specMock = swagmock(apiSpec);
Error: TypeError: swagmock is not a function
TypeError: swagmock is not a function
I can't see how the local variable name would influence the result. Unsure if this is a swagmock issue or an issue in the consuming code.
This works:
This doesn't:
Error:
TypeError: swagmock is not a function
I can't see how the local variable name would influence the result. Unsure if this is a swagmock issue or an issue in the consuming code.