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

Allows dirty access to fakeServer #214

Closed
wants to merge 1 commit into from
Closed

Allows dirty access to fakeServer #214

wants to merge 1 commit into from

Conversation

vojtech-dobes
Copy link

This is the only obstacle on way to using fakeServer in Mocha tests run from commandline. The usage is still pretty ugly, but works :).

Used same approach as in fake_xml_http_request.js.
@mantoni
Copy link
Member

mantoni commented Dec 11, 2012

Can you explain how you are using the fake server?

@vojtech-dobes
Copy link
Author

I see I have been too enthuasiastic :). It breaks somewhere else again, $.ajax call ends in phase 0 with error that:

TypeError: Object [object Object] has no method 'open'

Thanks for your quick response. This can be closed, but do you plan to resolve #125 somehow? I am trying to run my test from console and I am surprised, that jQuery represents such trouble.

@mantoni
Copy link
Member

mantoni commented Dec 11, 2012

Yes, the plan is to make fakeServer override http.request in node. But I think nobody started any work on that yet.

@mantoni mantoni closed this Dec 11, 2012
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

Successfully merging this pull request may close these issues.

3 participants