@@ -170,14 +170,12 @@ func TestGitHubDownloadRepo(t *testing.T) {
170
170
Description : "Good for newcomers" ,
171
171
},
172
172
},
173
- Reactions : & base.Reactions {
174
- TotalCount : 1 ,
175
- PlusOne : 1 ,
176
- MinusOne : 0 ,
177
- Laugh : 0 ,
178
- Confused : 0 ,
179
- Heart : 0 ,
180
- Hooray : 0 ,
173
+ Reactions : []* base.Reaction {
174
+ {
175
+ UserID : 1669571 ,
176
+ UserName : "mrsdizzie" ,
177
+ Content : "+1" ,
178
+ },
181
179
},
182
180
Closed : & closed1 ,
183
181
},
@@ -198,14 +196,37 @@ func TestGitHubDownloadRepo(t *testing.T) {
198
196
Description : "This issue or pull request already exists" ,
199
197
},
200
198
},
201
- Reactions : & base.Reactions {
202
- TotalCount : 6 ,
203
- PlusOne : 1 ,
204
- MinusOne : 1 ,
205
- Laugh : 1 ,
206
- Confused : 1 ,
207
- Heart : 1 ,
208
- Hooray : 1 ,
199
+ Reactions : []* base.Reaction {
200
+ {
201
+ UserID : 1669571 ,
202
+ UserName : "mrsdizzie" ,
203
+ Content : "heart" ,
204
+ },
205
+ {
206
+ UserID : 1669571 ,
207
+ UserName : "mrsdizzie" ,
208
+ Content : "laugh" ,
209
+ },
210
+ {
211
+ UserID : 1669571 ,
212
+ UserName : "mrsdizzie" ,
213
+ Content : "confused" ,
214
+ },
215
+ {
216
+ UserID : 1669571 ,
217
+ UserName : "mrsdizzie" ,
218
+ Content : "hooray" ,
219
+ },
220
+ {
221
+ UserID : 1669571 ,
222
+ UserName : "mrsdizzie" ,
223
+ Content : "+1" ,
224
+ },
225
+ {
226
+ UserID : 1669571 ,
227
+ UserName : "mrsdizzie" ,
228
+ Content : "+1" ,
229
+ },
209
230
},
210
231
Closed : & closed2 ,
211
232
},
@@ -223,14 +244,12 @@ func TestGitHubDownloadRepo(t *testing.T) {
223
244
Created : time .Date (2019 , 11 , 12 , 21 , 0 , 13 , 0 , time .UTC ),
224
245
Updated : time .Date (2019 , 11 , 12 , 21 , 0 , 13 , 0 , time .UTC ),
225
246
Content : "This is a comment" ,
226
- Reactions : & base.Reactions {
227
- TotalCount : 1 ,
228
- PlusOne : 1 ,
229
- MinusOne : 0 ,
230
- Laugh : 0 ,
231
- Confused : 0 ,
232
- Heart : 0 ,
233
- Hooray : 0 ,
247
+ Reactions : []* base.Reaction {
248
+ {
249
+ UserID : 1669571 ,
250
+ UserName : "mrsdizzie" ,
251
+ Content : "+1" ,
252
+ },
234
253
},
235
254
},
236
255
{
@@ -240,15 +259,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
240
259
Created : time .Date (2019 , 11 , 12 , 22 , 7 , 14 , 0 , time .UTC ),
241
260
Updated : time .Date (2019 , 11 , 12 , 22 , 7 , 14 , 0 , time .UTC ),
242
261
Content : "A second comment" ,
243
- Reactions : & base.Reactions {
244
- TotalCount : 0 ,
245
- PlusOne : 0 ,
246
- MinusOne : 0 ,
247
- Laugh : 0 ,
248
- Confused : 0 ,
249
- Heart : 0 ,
250
- Hooray : 0 ,
251
- },
262
+ Reactions : nil ,
252
263
},
253
264
}, comments [:2 ])
254
265
@@ -331,6 +342,18 @@ func TestGitHubDownloadRepo(t *testing.T) {
331
342
},
332
343
Merged : false ,
333
344
MergeCommitSHA : "565d1208f5fffdc1c5ae1a2436491eb9a5e4ebae" ,
345
+ Reactions : []* base.Reaction {
346
+ {
347
+ UserID : 81045 ,
348
+ UserName : "lunny" ,
349
+ Content : "heart" ,
350
+ },
351
+ {
352
+ UserID : 81045 ,
353
+ UserName : "lunny" ,
354
+ Content : "+1" ,
355
+ },
356
+ },
334
357
},
335
358
}, prs )
336
359
}
0 commit comments