Skip to content

Commit cc50c08

Browse files
committed
fix: adjust the mock data
1 parent 668cfaa commit cc50c08

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

packages/supabase/test/mock_test.dart

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -136,25 +136,11 @@ void main() {
136136
'postgres_changes': [
137137
{
138138
'id': 77086988,
139-
'event': 'INSERT',
139+
'event': '*',
140140
'schema': 'public',
141141
'table': 'todos',
142142
if (realtimeFilter != null) 'filter': realtimeFilter,
143143
},
144-
{
145-
'id': 25993878,
146-
'event': 'UPDATE',
147-
'schema': 'public',
148-
'table': 'todos',
149-
if (realtimeFilter != null) 'filter': realtimeFilter,
150-
},
151-
{
152-
'id': 48673474,
153-
'event': 'DELETE',
154-
'schema': 'public',
155-
'table': 'todos',
156-
if (realtimeFilter != null) 'filter': realtimeFilter,
157-
}
158144
]
159145
},
160146
'status': 'ok'
@@ -208,7 +194,7 @@ void main() {
208194
'ref': null,
209195
'event': 'postgres_changes',
210196
'payload': {
211-
'ids': [25993878],
197+
'ids': [77086988],
212198
'data': {
213199
'columns': [
214200
{'name': 'id', 'type': 'int4', 'type_modifier': 4294967295},
@@ -257,7 +243,7 @@ void main() {
257243
'type': 'DELETE',
258244
if (realtimeFilter != null) 'filter': realtimeFilter,
259245
},
260-
'ids': [48673474]
246+
'ids': [77086988]
261247
},
262248
});
263249
webSocket!.add(deleteString);
@@ -271,7 +257,7 @@ void main() {
271257
'ref': null,
272258
'event': 'postgres_changes',
273259
'payload': {
274-
'ids': [25993878],
260+
'ids': [77086988],
275261
'data': {
276262
'columns': [
277263
{'name': 'id', 'type': 'int4', 'type_modifier': 4294967295},
@@ -321,7 +307,7 @@ void main() {
321307
'type': 'DELETE',
322308
if (realtimeFilter != null) 'filter': realtimeFilter,
323309
},
324-
'ids': [48673474]
310+
'ids': [77086988]
325311
},
326312
});
327313
webSocket!.add(ignoredDeleteString);

0 commit comments

Comments
 (0)