Skip to content

Commit 0532580

Browse files
authored
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
1 parent bd6b453 commit 0532580

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2823,7 +2823,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re
28232823
done();
28242824
} );
28252825

2826-
jQuery.get( url( "mock.php?action=json&header" ), null, "text" )
2826+
jQuery.get( url( "mock.php?action=json&header" ), data, success, "text" )
28272827
.then( function( text ) {
28282828
assert.strictEqual( text, "{\"data\":{\"lang\":\"en\",\"length\":25}}",
28292829
"`dataType: \"text\"` applied with `" + data + "` data & `" +

0 commit comments

Comments
 (0)