Skip to content

Commit

Permalink
updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Mar 26, 2023
1 parent 0260d13 commit c224cc9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`should match snapshot when providing all fields: errors 1`] = `Array []
exports[`should match snapshot when providing all fields: output 1`] = `
ContributorEntity {
"avatarUrl": "https://avatars.githubusercontent.com/u/20110076?v=4",
"id": "20110076",
"id": "github/20110076",
"repositories": Array [],
"username": "ZibanPirate",
}
Expand All @@ -16,7 +16,7 @@ exports[`should match snapshot when providing required fields only: errors 1`] =
exports[`should match snapshot when providing required fields only: output 1`] = `
ContributorEntity {
"avatarUrl": "https://avatars.githubusercontent.com/u/20110076?v=4",
"id": "20110076",
"id": "github/20110076",
"username": "ZibanPirate",
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ RepositoryEntity {
"owner": "dzcode-io",
"provider": "github",
"repository": "leblad",
"stats": RepositoryStatsEntity {
"contributionCount": 10,
"languages": Array [
"TypeScript",
"Rust",
],
},
}
`;

Expand All @@ -27,7 +34,7 @@ Array [
ValidationError {
"children": Array [],
"constraints": Object {
"isString": "provider must be a string",
"isIn": "provider must be one of the following values: github, gitlab",
},
"property": "provider",
"target": RepositoryEntity {},
Expand Down

0 comments on commit c224cc9

Please sign in to comment.