]> source.dussan.org Git - jquery.git/commitdiff
Tests: align mock.php spacing with 3.x-stable branch
authorTimmy Willison <timmywil@users.noreply.github.com>
Sun, 25 Aug 2024 13:19:37 +0000 (09:19 -0400)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2024 13:19:37 +0000 (09:19 -0400)
Closes gh-5538

test/data/mock.php

index 61e40c3fc581ef4f087ab54cff23bb144d666f27..105f9867be796ee141257289da66259723cc0bbe 100644 (file)
@@ -95,9 +95,9 @@ QUnit.assert.ok( true, "mock executed");';
                }
 
                if ( isset( $req->query['array'] ) ) {
-                       echo '[{"name":"John","age":21},{"name":"Peter","age":25}]';
+                       echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';
                } else {
-                       echo '{"data":{"lang":"en","length":25}}';
+                       echo '{ "data": {"lang": "en", "length": 25} }';
                }
        }
 
@@ -112,8 +112,8 @@ QUnit.assert.ok( true, "mock executed");';
                        $callback = $_POST['callback'];
                }
                $json = isset( $req->query['array'] ) ?
-                       '[{"name":"John","age":21},{"name":"Peter","age":25}]' :
-                       '{"data":{"lang":"en","length":25}}';
+                       '[ { "name": "John", "age": 21 }, { "name": "Peter", "age": 25 } ]' :
+                       '{ "data": { "lang": "en", "length": 25 } }';
                echo cleanCallback( $callback ) . '(' . $json . ')';
        }