diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2016-05-10 12:12:28 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2016-06-11 10:41:33 +0300 |
commit | 58c6ca9822afa42d3b40cca8edb0abe90a2bcb34 (patch) | |
tree | eb8c4c93031b4f0d88ffe5d58af7d58337c7b116 /test/unit/ajax.js | |
parent | a4474c9a0025095f82d734a9d7230eace2f08ef8 (diff) | |
download | jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.tar.gz jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.zip |
Build: ESLint details
Use eslint pragmas, fix new errors, etc
Closes gh-3148
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 1a4ff7ee4..5e24c3049 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -99,7 +99,7 @@ QUnit.module( "ajax", { assert.ok( true, "success" ); }, fail: function() { - if (jQuery.support.cors === false) { + if ( jQuery.support.cors === false ) { assert.ok( true, "fail" ); } }, @@ -1737,11 +1737,11 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re } else { // No built-in support for binary data, but it's easy to add via a prefilter - jQuery.ajaxPrefilter( "arraybuffer", function ( s ) { + jQuery.ajaxPrefilter( "arraybuffer", function( s ) { s.xhrFields = { responseType: "arraybuffer" }; s.responseFields.arraybuffer = "response"; s.converters[ "binary arraybuffer" ] = true; - }); + } ); ajaxTest( "gh-2498 - jQuery.ajax() - binary data shouldn't throw an exception", 2, function( assert ) { return { @@ -1961,7 +1961,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re url: url( "data/ajax/content-type.php" ), data: { "content-type": "test/jsontest", - "response": JSON.stringify({test: "test"}) + "response": JSON.stringify( { test: "test" } ) }, success: function( result ) { assert.strictEqual( |