Skip to content

Commit 19ab883

Browse files
committed
Regenerate spec tests with stable JSON.
The PR firebase/firebase-js-sdk#2843 caused stable JSON to be generated.
1 parent 03107cb commit 19ab883

13 files changed

+197409
-186160
lines changed

firebase-firestore/src/test/resources/json/collection_spec_test.json

Lines changed: 62 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,34 @@
22
"Events are raised after watch ack": {
33
"describeName": "Collections:",
44
"itName": "Events are raised after watch ack",
5-
"tags": [],
5+
"tags": [
6+
],
67
"config": {
7-
"useGarbageCollection": true,
8-
"numClients": 1
8+
"numClients": 1,
9+
"useGarbageCollection": true
910
},
1011
"steps": [
1112
{
1213
"userListen": [
1314
2,
1415
{
15-
"path": "collection",
16-
"filters": [],
17-
"orderBys": []
16+
"filters": [
17+
],
18+
"orderBys": [
19+
],
20+
"path": "collection"
1821
}
1922
],
2023
"expectedState": {
2124
"activeTargets": {
2225
"2": {
2326
"queries": [
2427
{
25-
"path": "collection",
26-
"filters": [],
27-
"orderBys": []
28+
"filters": [
29+
],
30+
"orderBys": [
31+
],
32+
"path": "collection"
2833
}
2934
],
3035
"resumeToken": ""
@@ -42,14 +47,14 @@
4247
"docs": [
4348
{
4449
"key": "collection/key",
45-
"version": 1000,
50+
"options": {
51+
"hasCommittedMutations": false,
52+
"hasLocalMutations": false
53+
},
4654
"value": {
4755
"foo": "bar"
4856
},
49-
"options": {
50-
"hasLocalMutations": false,
51-
"hasCommittedMutations": false
52-
}
57+
"version": 1000
5358
}
5459
],
5560
"targets": [
@@ -67,32 +72,35 @@
6772
},
6873
{
6974
"watchSnapshot": {
70-
"version": 1001,
71-
"targetIds": []
75+
"targetIds": [
76+
],
77+
"version": 1001
7278
},
7379
"expectedSnapshotEvents": [
7480
{
75-
"query": {
76-
"path": "collection",
77-
"filters": [],
78-
"orderBys": []
79-
},
8081
"added": [
8182
{
8283
"key": "collection/key",
83-
"version": 1000,
84+
"options": {
85+
"hasCommittedMutations": false,
86+
"hasLocalMutations": false
87+
},
8488
"value": {
8589
"foo": "bar"
8690
},
87-
"options": {
88-
"hasLocalMutations": false,
89-
"hasCommittedMutations": false
90-
}
91+
"version": 1000
9192
}
9293
],
9394
"errorCode": 0,
9495
"fromCache": false,
95-
"hasPendingWrites": false
96+
"hasPendingWrites": false,
97+
"query": {
98+
"filters": [
99+
],
100+
"orderBys": [
101+
],
102+
"path": "collection"
103+
}
96104
}
97105
]
98106
}
@@ -101,29 +109,34 @@
101109
"Events are raised for local sets before watch ack": {
102110
"describeName": "Collections:",
103111
"itName": "Events are raised for local sets before watch ack",
104-
"tags": [],
112+
"tags": [
113+
],
105114
"config": {
106-
"useGarbageCollection": true,
107-
"numClients": 1
115+
"numClients": 1,
116+
"useGarbageCollection": true
108117
},
109118
"steps": [
110119
{
111120
"userListen": [
112121
2,
113122
{
114-
"path": "collection",
115-
"filters": [],
116-
"orderBys": []
123+
"filters": [
124+
],
125+
"orderBys": [
126+
],
127+
"path": "collection"
117128
}
118129
],
119130
"expectedState": {
120131
"activeTargets": {
121132
"2": {
122133
"queries": [
123134
{
124-
"path": "collection",
125-
"filters": [],
126-
"orderBys": []
135+
"filters": [
136+
],
137+
"orderBys": [
138+
],
139+
"path": "collection"
127140
}
128141
],
129142
"resumeToken": ""
@@ -140,27 +153,29 @@
140153
],
141154
"expectedSnapshotEvents": [
142155
{
143-
"query": {
144-
"path": "collection",
145-
"filters": [],
146-
"orderBys": []
147-
},
148156
"added": [
149157
{
150158
"key": "collection/key",
151-
"version": 0,
159+
"options": {
160+
"hasCommittedMutations": false,
161+
"hasLocalMutations": true
162+
},
152163
"value": {
153164
"foo": "bar"
154165
},
155-
"options": {
156-
"hasLocalMutations": true,
157-
"hasCommittedMutations": false
158-
}
166+
"version": 0
159167
}
160168
],
161169
"errorCode": 0,
162170
"fromCache": true,
163-
"hasPendingWrites": true
171+
"hasPendingWrites": true,
172+
"query": {
173+
"filters": [
174+
],
175+
"orderBys": [
176+
],
177+
"path": "collection"
178+
}
164179
}
165180
]
166181
}

0 commit comments

Comments
 (0)