8000 Tests: Fix tests for `jQuery.get( String, null-ish, null-ish, String )` by mgol · Pull Request #5646 · jquery/jquery · GitHub
[go: up one dir, main page]

Skip to content

Tests: Fix tests for jQuery.get( String, null-ish, null-ish, String ) #5646

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 < 8000 a class="Link--inTextBlock" href="https://docs.github.com/terms" target="_blank">terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

mgol
Copy link
Member
@mgol mgol commented Mar 31, 2025

Summary

The original test's text variant just repeated the previous test with 3 parameters; the goal was to use 4 ones. This fixes it.

Ref gh-5640
Ref gh-5645

Checklist

@mgol
Copy link
Member Author
mgol commented Mar 31, 2025

I only noticed it post merge when trying to backport the test to 3.x-stable and see it fail as the 3.x line does not support the jQuery.get( String, null, String ) signature. 🤦🏻

The original test's `text` variant just repeated the previous test with 3
parameters; the goal was to use 4 ones. This fixes it.

Ref jquerygh-5640
Ref jquerygh-5645
@mgol mgol force-pushed the jquery-get-test-fix branch from 19185c7 to 27288a1 Compare April 1, 2025 09:14
@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label May 5, 2025
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label May 12, 2025
@mgol mgol added this to the 4.0.0 milestone May 12, 2025
@mgol mgol removed the Needs review label May 12, 2025
@mgol mgol merged commit 0532580 into jquery:main May 12, 2025
17 checks passed
@mgol mgol deleted the jquery-get-test-fix branch May 12, 2025 15:50
mgol added a commit to mgol/api.jquery.com that referenced this pull request May 12, 2025
In jQuery 3.x and older, when providing a `null` value for `success` you also
have to provide the `data` parameter; you can set it to `undefined`.

Document this restriction of `jQuery.get` & `jQuery.post`.

Closes jquerygh-1208
Ref jquery/jquery#4989
Ref jquery/jquery#5139
Ref jquery/jquery#5640
Ref jquery/jquery#5645
Ref jquery/jquery#5646
mgol added a commit to jquery/api.jquery.com that referenced this pull request May 12, 2025
In jQuery 3.x and older, when providing a `null` value for `success` you also
have to provide the `data` parameter; you can set it to `undefined`.

Document this restriction of `jQuery.get` & `jQuery.post`.

Closes gh-1208
Ref jquery/jquery#4989
Ref jquery/jquery#5139
Ref jquery/jquery#5640
Ref jquery/jquery#5645
Ref jquery/jquery#5646
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants
0