|
2 | 2 | "Events are raised after watch ack": {
|
3 | 3 | "describeName": "Collections:",
|
4 | 4 | "itName": "Events are raised after watch ack",
|
5 |
| - "tags": [], |
| 5 | + "tags": [ |
| 6 | + ], |
6 | 7 | "config": {
|
7 |
| - "useGarbageCollection": true, |
8 |
| - "numClients": 1 |
| 8 | + "numClients": 1, |
| 9 | + "useGarbageCollection": true |
9 | 10 | },
|
10 | 11 | "steps": [
|
11 | 12 | {
|
12 | 13 | "userListen": [
|
13 | 14 | 2,
|
14 | 15 | {
|
15 |
| - "path": "collection", |
16 |
| - "filters": [], |
17 |
| - "orderBys": [] |
| 16 | + "filters": [ |
| 17 | + ], |
| 18 | + "orderBys": [ |
| 19 | + ], |
| 20 | + "path": "collection" |
18 | 21 | }
|
19 | 22 | ],
|
20 | 23 | "expectedState": {
|
21 | 24 | "activeTargets": {
|
22 | 25 | "2": {
|
23 | 26 | "queries": [
|
24 | 27 | {
|
25 |
| - "path": "collection", |
26 |
| - "filters": [], |
27 |
| - "orderBys": [] |
| 28 | + "filters": [ |
| 29 | + ], |
| 30 | + "orderBys": [ |
| 31 | + ], |
| 32 | + "path": "collection" |
28 | 33 | }
|
29 | 34 | ],
|
30 | 35 | "resumeToken": ""
|
|
42 | 47 | "docs": [
|
43 | 48 | {
|
44 | 49 | "key": "collection/key",
|
45 |
| - "version": 1000, |
| 50 | + "options": { |
| 51 | + "hasCommittedMutations": false, |
| 52 | + "hasLocalMutations": false |
| 53 | + }, |
46 | 54 | "value": {
|
47 | 55 | "foo": "bar"
|
48 | 56 | },
|
49 |
| - "options": { |
50 |
| - "hasLocalMutations": false, |
51 |
| - "hasCommittedMutations": false |
52 |
| - } |
| 57 | + "version": 1000 |
53 | 58 | }
|
54 | 59 | ],
|
55 | 60 | "targets": [
|
|
67 | 72 | },
|
68 | 73 | {
|
69 | 74 | "watchSnapshot": {
|
70 |
| - "version": 1001, |
71 |
| - "targetIds": [] |
| 75 | + "targetIds": [ |
| 76 | + ], |
| 77 | + "version": 1001 |
72 | 78 | },
|
73 | 79 | "expectedSnapshotEvents": [
|
74 | 80 | {
|
75 |
| - "query": { |
76 |
| - "path": "collection", |
77 |
| - "filters": [], |
78 |
| - "orderBys": [] |
79 |
| - }, |
80 | 81 | "added": [
|
81 | 82 | {
|
82 | 83 | "key": "collection/key",
|
83 |
| - "version": 1000, |
| 84 | + "options": { |
| 85 | + "hasCommittedMutations": false, |
| 86 | + "hasLocalMutations": false |
| 87 | + }, |
84 | 88 | "value": {
|
85 | 89 | "foo": "bar"
|
86 | 90 | },
|
87 |
| - "options": { |
88 |
| - "hasLocalMutations": false, |
89 |
| - "hasCommittedMutations": false |
90 |
| - } |
| 91 | + "version": 1000 |
91 | 92 | }
|
92 | 93 | ],
|
93 | 94 | "errorCode": 0,
|
94 | 95 | "fromCache": false,
|
95 |
| - "hasPendingWrites": false |
| 96 | + "hasPendingWrites": false, |
| 97 | + "query": { |
| 98 | + "filters": [ |
| 99 | + ], |
| 100 | + "orderBys": [ |
| 101 | + ], |
| 102 | + "path": "collection" |
| 103 | + } |
96 | 104 | }
|
97 | 105 | ]
|
98 | 106 | }
|
|
101 | 109 | "Events are raised for local sets before watch ack": {
|
102 | 110 | "describeName": "Collections:",
|
103 | 111 | "itName": "Events are raised for local sets before watch ack",
|
104 |
| - "tags": [], |
| 112 | + "tags": [ |
| 113 | + ], |
105 | 114 | "config": {
|
106 |
| - "useGarbageCollection": true, |
107 |
| - "numClients": 1 |
| 115 | + "numClients": 1, |
| 116 | + "useGarbageCollection": true |
108 | 117 | },
|
109 | 118 | "steps": [
|
110 | 119 | {
|
111 | 120 | "userListen": [
|
112 | 121 | 2,
|
113 | 122 | {
|
114 |
| - "path": "collection", |
115 |
| - "filters": [], |
116 |
| - "orderBys": [] |
| 123 | + "filters": [ |
| 124 | + ], |
| 125 | + "orderBys": [ |
| 126 | + ], |
| 127 | + "path": "collection" |
117 | 128 | }
|
118 | 129 | ],
|
119 | 130 | "expectedState": {
|
120 | 131 | "activeTargets": {
|
121 | 132 | "2": {
|
122 | 133 | "queries": [
|
123 | 134 | {
|
124 |
| - "path": "collection", |
125 |
| - "filters": [], |
126 |
| - "orderBys": [] |
| 135 | + "filters": [ |
| 136 | + ], |
| 137 | + "orderBys": [ |
| 138 | + ], |
| 139 | + "path": "collection" |
127 | 140 | }
|
128 | 141 | ],
|
129 | 142 | "resumeToken": ""
|
|
140 | 153 | ],
|
141 | 154 | "expectedSnapshotEvents": [
|
142 | 155 | {
|
143 |
| - "query": { |
144 |
| - "path": "collection", |
145 |
| - "filters": [], |
146 |
| - "orderBys": [] |
147 |
| - }, |
148 | 156 | "added": [
|
149 | 157 | {
|
150 | 158 | "key": "collection/key",
|
151 |
| - "version": 0, |
| 159 | + "options": { |
| 160 | + "hasCommittedMutations": false, |
| 161 | + "hasLocalMutations": true |
| 162 | + }, |
152 | 163 | "value": {
|
153 | 164 | "foo": "bar"
|
154 | 165 | },
|
155 |
| - "options": { |
156 |
| - "hasLocalMutations": true, |
157 |
| - "hasCommittedMutations": false |
158 |
| - } |
| 166 | + "version": 0 |
159 | 167 | }
|
160 | 168 | ],
|
161 | 169 | "errorCode": 0,
|
162 | 170 | "fromCache": true,
|
163 |
| - "hasPendingWrites": true |
| 171 | + "hasPendingWrites": true, |
| 172 | + "query": { |
| 173 | + "filters": [ |
| 174 | + ], |
| 175 | + "orderBys": [ |
| 176 | + ], |
| 177 | + "path": "collection" |
| 178 | + } |
164 | 179 | }
|
165 | 180 | ]
|
166 | 181 | }
|
|
0 commit comments