Skip to content

Commit 559cc0e

Browse files
committed
Add createdBy field to ContributionEntity
1 parent 55ea2f5 commit 559cc0e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

packages/models/src/contribution/__snapshots__/index.spec.ts.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ exports[`should match snapshot when providing all fields: output 1`] = `
66
ContributionEntity {
77
"commentsCount": 0,
88
"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+
},
916
"id": "71",
1017
"labels": [
1118
"discussion",
@@ -32,6 +39,13 @@ exports[`should match snapshot when providing required fields only: output 1`] =
3239
ContributionEntity {
3340
"commentsCount": 0,
3441
"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+
},
3549
"id": "71",
3650
"labels": [
3751
"discussion",

packages/models/src/contribution/index.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ runDTOTestCases(
1818
createdAt: "2020-02-02T20:22:02.000Z",
1919
updatedAt: "2020-02-02T20:22:02.000Z",
2020
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+
},
2128
},
2229
{},
2330
);

0 commit comments

Comments
 (0)