Skip to content

Commit

Permalink
Add createdBy field to ContributionEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Jan 1, 2024
1 parent 55ea2f5 commit 559cc0e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/models/src/contribution/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ exports[`should match snapshot when providing all fields: output 1`] = `
ContributionEntity {
"commentsCount": 0,
"createdAt": "2020-02-02T20:22:02.000Z",
"createdBy": AccountEntity {
"avatarUrl": "https://avatars.githubusercontent.com/u/20110076?v=4",
"id": "github/20110076",
"name": "Zakaria Mansouri",
"profileUrl": "/Account/github/20110076",
"username": "ZibanPirate",
},
"id": "71",
"labels": [
"discussion",
Expand All @@ -32,6 +39,13 @@ exports[`should match snapshot when providing required fields only: output 1`] =
ContributionEntity {
"commentsCount": 0,
"createdAt": "2020-02-02T20:22:02.000Z",
"createdBy": AccountEntity {
"avatarUrl": "https://avatars.githubusercontent.com/u/20110076?v=4",
"id": "github/20110076",
"name": "Zakaria Mansouri",
"profileUrl": "/Account/github/20110076",
"username": "ZibanPirate",
},
"id": "71",
"labels": [
"discussion",
Expand Down
7 changes: 7 additions & 0 deletions packages/models/src/contribution/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ runDTOTestCases(
createdAt: "2020-02-02T20:22:02.000Z",
updatedAt: "2020-02-02T20:22:02.000Z",
url: "https://github.com/dzcode-io/leblad/issues/71",
createdBy: {
id: "github/20110076",
username: "ZibanPirate",
name: "Zakaria Mansouri",
profileUrl: "/Account/github/20110076",
avatarUrl: "https://avatars.githubusercontent.com/u/20110076?v=4",
},
},
{},
);

0 comments on commit 559cc0e

Please sign in to comment.