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

Prevent network requests during test run #38

Open
christophermlne opened this issue Oct 18, 2015 · 1 comment
Open

Prevent network requests during test run #38

christophermlne opened this issue Oct 18, 2015 · 1 comment

Comments

@christophermlne
Copy link
Contributor

I just noticed that whenever I run my test suite that network requests are going out for Gravatar images.

Specifically, I have a component integration test that renders a template with the 'htmlbars-inline-precompile' method.

A child component that gets rendered as a result of this call to this.render() contains the Gravatar component.

Is there any way to disable network requests during a test run?

@johno
Copy link
Owner

johno commented Oct 19, 2015

This is definitely something we could support. I'm thinking it might be best to add as a configuration option that, when set to true, stubs out the image when in the test environment. Does this type of functionality sound like it'd work for you? I'll take a stab at getting something together this evening and let you know.

Thanks for taking the time to create this issue!

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

2 participants