Skip to content

Commit cb9e30e

Browse files
committed
Move canary converters object to top of function
Also adds a semicolon to end of variable definition. Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
1 parent 6b5dd20 commit cb9e30e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/unit/ajax.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,12 @@ QUnit.module( "ajax", {
840840
ajaxTest( "jQuery.ajax() - do not execute scripts from unsuccessful responses (gh-4250)", 10, function( assert ) {
841841
var globalEval = jQuery.globalEval;
842842

843+
var canary = {
844+
"text script": function() {
845+
assert.ok( false, "No converter for unsuccessful response" );
846+
}
847+
};
848+
843849
function request( title, options ) {
844850
var testMsg = title + ": expected file missing status";
845851
return jQuery.extend( {
@@ -861,12 +867,6 @@ QUnit.module( "ajax", {
861867
}, options );
862868
}
863869

864-
var canary = {
865-
"text script": function() {
866-
assert.ok( false, "No converter for unsuccessful response" );
867-
}
868-
}
869-
870870
return [
871871
request(
872872
"HTML reply",

0 commit comments

Comments
 (0)