Skip to content

Commit 61d0b73

Browse files
committed
Update test mocks
1 parent aa71b9e commit 61d0b73

1 file changed

Lines changed: 114 additions & 1 deletion

File tree

tests/qunit/fixtures/wp-api-generated.js

Lines changed: 114 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ mockedApiResponse.Schema = {
2020
"wp/v2",
2121
"wp-site-health/v1",
2222
"wp-block-editor/v1",
23-
"wp-abilities/v1"
23+
"wp-abilities/v1",
24+
"wp-sync/v1"
2425
],
2526
"authentication": {
2627
"application-passwords": {
@@ -11085,6 +11086,12 @@ mockedApiResponse.Schema = {
1108511086
"type": "string",
1108611087
"required": false
1108711088
},
11089+
"enable_real_time_collaboration": {
11090+
"title": "",
11091+
"description": "Enable Real-Time Collaboration",
11092+
"type": "boolean",
11093+
"required": false
11094+
},
1108811095
"posts_per_page": {
1108911096
"title": "Maximum posts per page",
1109011097
"description": "Blog pages show at most.",
@@ -12608,6 +12615,111 @@ mockedApiResponse.Schema = {
1260812615
}
1260912616
}
1261012617
]
12618+
},
12619+
"/wp-sync/v1": {
12620+
"namespace": "wp-sync/v1",
12621+
"methods": [
12622+
"GET"
12623+
],
12624+
"endpoints": [
12625+
{
12626+
"methods": [
12627+
"GET"
12628+
],
12629+
"args": {
12630+
"namespace": {
12631+
"default": "wp-sync/v1",
12632+
"required": false
12633+
},
12634+
"context": {
12635+
"default": "view",
12636+
"required": false
12637+
}
12638+
}
12639+
}
12640+
],
12641+
"_links": {
12642+
"self": [
12643+
{
12644+
"href": "http://example.org/index.php?rest_route=/wp-sync/v1"
12645+
}
12646+
]
12647+
}
12648+
},
12649+
"/wp-sync/v1/updates": {
12650+
"namespace": "wp-sync/v1",
12651+
"methods": [
12652+
"POST"
12653+
],
12654+
"endpoints": [
12655+
{
12656+
"methods": [
12657+
"POST"
12658+
],
12659+
"args": {
12660+
"rooms": {
12661+
"items": {
12662+
"properties": {
12663+
"after": {
12664+
"minimum": 0,
12665+
"required": true,
12666+
"type": "integer"
12667+
},
12668+
"awareness": {
12669+
"required": true,
12670+
"type": "object"
12671+
},
12672+
"client_id": {
12673+
"minimum": 1,
12674+
"required": true,
12675+
"type": "integer"
12676+
},
12677+
"room": {
12678+
"required": true,
12679+
"type": "string",
12680+
"pattern": "^[^/]+/[^/:]+(?::\\S+)?$"
12681+
},
12682+
"updates": {
12683+
"items": {
12684+
"properties": {
12685+
"data": {
12686+
"type": "string",
12687+
"required": true
12688+
},
12689+
"type": {
12690+
"type": "string",
12691+
"required": true,
12692+
"enum": [
12693+
"compaction",
12694+
"sync_step1",
12695+
"sync_step2",
12696+
"update"
12697+
]
12698+
}
12699+
},
12700+
"required": true,
12701+
"type": "object"
12702+
},
12703+
"minItems": 0,
12704+
"required": true,
12705+
"type": "array"
12706+
}
12707+
},
12708+
"type": "object"
12709+
},
12710+
"type": "array",
12711+
"required": true
12712+
}
12713+
}
12714+
}
12715+
],
12716+
"_links": {
12717+
"self": [
12718+
{
12719+
"href": "http://example.org/index.php?rest_route=/wp-sync/v1/updates"
12720+
}
12721+
]
12722+
}
1261112723
}
1261212724
},
1261312725
"site_logo": 0,
@@ -14462,6 +14574,7 @@ mockedApiResponse.settings = {
1446214574
"use_smilies": true,
1446314575
"default_category": 1,
1446414576
"default_post_format": "0",
14577+
"enable_real_time_collaboration": false,
1446514578
"posts_per_page": 10,
1446614579
"show_on_front": "posts",
1446714580
"page_on_front": 0,

0 commit comments

Comments
 (0)