File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
packages/models/src/contribution Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ exports[`should match snapshot when providing all fields: output 1`] = `
6
6
ContributionEntity {
7
7
" commentsCount" : 0 ,
8
8
" createdAt" : " 2020-02-02T20:22:02.000Z" ,
9
+ " createdBy" : AccountEntity {
10
+ " avatarUrl" : " https://avatars.githubusercontent.com/u/20110076?v=4" ,
11
+ " id" : " github/20110076" ,
12
+ " name" : " Zakaria Mansouri" ,
13
+ " profileUrl" : " /Account/github/20110076" ,
14
+ " username" : " ZibanPirate" ,
15
+ },
9
16
" id" : " 71" ,
10
17
" labels" : [
11
18
" discussion" ,
@@ -32,6 +39,13 @@ exports[`should match snapshot when providing required fields only: output 1`] =
32
39
ContributionEntity {
33
40
" commentsCount" : 0 ,
34
41
" createdAt" : " 2020-02-02T20:22:02.000Z" ,
42
+ " createdBy" : AccountEntity {
43
+ " avatarUrl" : " https://avatars.githubusercontent.com/u/20110076?v=4" ,
44
+ " id" : " github/20110076" ,
45
+ " name" : " Zakaria Mansouri" ,
46
+ " profileUrl" : " /Account/github/20110076" ,
47
+ " username" : " ZibanPirate" ,
48
+ },
35
49
" id" : " 71" ,
36
50
" labels" : [
37
51
" discussion" ,
Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ runDTOTestCases(
18
18
createdAt : "2020-02-02T20:22:02.000Z" ,
19
19
updatedAt : "2020-02-02T20:22:02.000Z" ,
20
20
url : "https://github.com/dzcode-io/leblad/issues/71" ,
21
+ createdBy : {
22
+ id : "github/20110076" ,
23
+ username : "ZibanPirate" ,
24
+ name : "Zakaria Mansouri" ,
25
+ profileUrl : "/Account/github/20110076" ,
26
+ avatarUrl : "https://avatars.githubusercontent.com/u/20110076?v=4" ,
27
+ } ,
21
28
} ,
22
29
{ } ,
23
30
) ;
You can’t perform that action at this time.
0 commit comments