diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-08-25 09:19:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 09:19:37 -0400 |
commit | d5ae14f6fe07e2c2050f029525664cc2d42f9376 (patch) | |
tree | 18d92bc674aece33ea2116df09dfd2c637adb6e9 | |
parent | dbc9dac7aecb106b66050342ff8daf1ecdd4239f (diff) | |
download | jquery-d5ae14f6fe07e2c2050f029525664cc2d42f9376.tar.gz jquery-d5ae14f6fe07e2c2050f029525664cc2d42f9376.zip |
Tests: align mock.php spacing with 3.x-stable branch
Closes gh-5538
-rw-r--r-- | test/data/mock.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/data/mock.php b/test/data/mock.php index 61e40c3fc..105f9867b 100644 --- a/test/data/mock.php +++ b/test/data/mock.php @@ -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 . ')'; } |