Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Explicitly use GET for loading fixtures #276

Closed
wants to merge 1 commit into from
Closed

Explicitly use GET for loading fixtures #276

wants to merge 1 commit into from

Conversation

himdel
Copy link

@himdel himdel commented Jan 14, 2016

Add a method: 'GET' to every $.ajax call - this allows jasmine-jquery to use fixtures even when testing code that overrides the default request method for jQuery.

(That can be done via $.ajaxSetup({ type: "POST" });.)

What do you think?

If we want to support jquery < 1.9, I can change method to type..

Not sure how to test this..?

Allows jasmine-jquery to use fixtures even when testing code that
overrides the default request method for jQuery.
@himdel
Copy link
Author

himdel commented Sep 7, 2018

No activity for years, closing.

Our solution was to stop overriding the default request method, and explicitly add type: 'POST' to every jquery call that didn't have it.

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

Successfully merging this pull request may close these issues.

1 participant