aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2025-05-12 17:50:52 +0200
committerGitHub <noreply@github.com>2025-05-12 17:50:52 +0200
commit05325801b9453374bf8279f2121829a19b3c09d8 (patch)
treee851eecdaf6fb36f37bdfa5732b4be12ee30f6b4
parentbd6b453b7effa78b292812dbe218491624994526 (diff)
downloadjquery-05325801b9453374bf8279f2121829a19b3c09d8.tar.gz
jquery-05325801b9453374bf8279f2121829a19b3c09d8.zip
Tests: Fix tests for `jQuery.get( String, null-ish, null-ish, String )`
The original test's `text` variant just repeated the previous test with 3 parameters; the goal was to use 4 ones. This fixes it. Closes gh-5646 Ref gh-5640 Ref gh-5645
-rw-r--r--test/unit/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 253272499..4f843f2e5 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -2823,7 +2823,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re
done();
} );
- jQuery.get( url( "mock.php?action=json&header" ), null, "text" )
+ jQuery.get( url( "mock.php?action=json&header" ), data, success, "text" )
.then( function( text ) {
assert.strictEqual( text, "{\"data\":{\"lang\":\"en\",\"length\":25}}",
"`dataType: \"text\"` applied with `" + data + "` data & `" +