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

mock hubot require to webbybot to use adapters directly #68

Open
gasolin opened this issue Dec 12, 2016 · 1 comment
Open

mock hubot require to webbybot to use adapters directly #68

gasolin opened this issue Dec 12, 2016 · 1 comment

Comments

@gasolin
Copy link
Owner

gasolin commented Dec 12, 2016

currently webbybot needs to modify the require('hubot') statement from every hubot-adapters, its not that convenient.

We can use mockery or mock-require to proxy hubot require to webbybot, so every hubot requirement will be redirected to webbybot

@gasolin
Copy link
Owner Author

gasolin commented Dec 12, 2016

or use proxyquire

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