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

Feature/cjsify fake server tests #1118

Merged

Conversation

jonnyreeves
Copy link
Contributor

Another straight forward port.

fake-server-test.js is still pulling in the sinon module as it tests that the global useFakeXMLHttpRequest method is invoked upon construction of the fakeServer instance. I'll add a note in #966 as it will result in an API change.

Straight forward for the most-part, but the module still relies on the `sinon` module as `fakeServer.create()` still relies on the `sinon` object to instantiate the appropriate XHR Transport.
TBH this module can probably be deprecated; it appears to only be required by legacy environments (jQuery 1.3)
@jonnyreeves jonnyreeves mentioned this pull request Aug 8, 2016
36 tasks
@mantoni
Copy link
Member

mantoni commented Aug 9, 2016

LGTM. Thanks!

@jonnyreeves jonnyreeves merged commit f496861 into sinonjs:master Aug 9, 2016
@fatso83
Copy link
Contributor

fatso83 commented Feb 1, 2017

@jonnyreeves, one of the few last bits remaining for Sinon 2.0 is "Migrate fake_server and friends", where you mention "useFakeXMLHttpRequest still referenced"

as it will result in an API change.

I am not quite sure which API will change? I would like to give this a go, but unsure what you are referring to here.

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