Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requiring Swagmock under a different name leads to is not a function #53

Open
ftes opened this issue Mar 6, 2018 · 0 comments
Open

Comments

@ftes
Copy link

ftes commented Mar 6, 2018

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant