Skip to content

Commit 50ed369

Browse files
committed
refactor: jsonFixture file issue 89
1 parent 94402ac commit 50ed369

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"deleted": [],
3+
"deleted_foreign_ids": [],
4+
"feed": "task: 32db0f46-3593-4e14-aa57-f05af4887260",
5+
"new": [
6+
{
7+
"actor": {
8+
"created_at": "2021-04-13T22:53:19.670051Z",
9+
"updated_at": "2021-04-13T22:53:19.670051Z",
10+
"id": "eTHVBnEm0FQB2HeaRKVlEfVf58B3personal",
11+
"data": {
12+
"gender": "Male",
13+
"name": "Rickey Lee",
14+
"photo": "https://firebasestorage.googleapis.com/v0/b/fire-snab.appspot.com/o/profile-image-placeholder.png?alt=media&token=b17598bb-a510-4167-8354-ab75642ba89e"
15+
}
16+
},
17+
"createdTask": {
18+
"id": "32db0f46-3593-4e14-aa57-f05af4887260",
19+
"title": "KeyPack",
20+
"isFinished": true
21+
},
22+
"foreign_id": null,
23+
"group": "updated_2021-06-09",
24+
"id": "cff95542-c979-11eb-8080-80005abdd229",
25+
"object": "task_situation_updated to true",
26+
"origin": null,
27+
"target": null,
28+
"time": "2021-06-09T23:24:18.238189",
29+
"verb": "updated"
30+
}
31+
]
32+
}

packages/stream_feed/test/models_test.dart

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -154,39 +154,7 @@ void main() {
154154
});
155155

156156
test('issue-89', () {
157-
RealtimeMessage.fromJson({
158-
'deleted': [],
159-
'deleted_foreign_ids': [],
160-
'feed': 'task:32db0f46-3593-4e14-aa57-f05af4887260',
161-
'new': [
162-
{
163-
"actor": {
164-
"created_at": "2021-04-13T22:53:19.670051Z",
165-
"updated_at": "2021-04-13T22:53:19.670051Z",
166-
"id": "eTHVBnEm0FQB2HeaRKVlEfVf58B3personal",
167-
"data": {
168-
"gender": "Male",
169-
"name": "Rickey Lee",
170-
"photo":
171-
"https://firebasestorage.googleapis.com/v0/b/fire-snab.appspot.com/o/profile-image-placeholder.png?alt=media&token=b17598bb-a510-4167-8354-ab75642ba89e"
172-
}
173-
},
174-
"createdTask": {
175-
"id": "32db0f46-3593-4e14-aa57-f05af4887260",
176-
"title": "KeyPack",
177-
"isFinished": true
178-
},
179-
"foreign_id": null,
180-
"group": "updated_2021-06-09",
181-
"id": "cff95542-c979-11eb-8080-80005abdd229",
182-
"object": "task_situation_updated to true",
183-
"origin": null,
184-
"target": null,
185-
"time": "2021-06-09T23:24:18.238189",
186-
"verb": "updated"
187-
}
188-
]
189-
});
157+
RealtimeMessage.fromJson(jsonFixture('realtime_message_issue89.json'));
190158
});
191159
});
192160
test('EnrichedActivity issue 61', () {

0 commit comments

Comments
 (0)