Skip to content

Commit

Permalink
update [GithubCommitActivity] spec file for new author feat
Browse files Browse the repository at this point in the history
Add test for new transformAuthorFilter function of GithubCommitActivity added for the author filter feature.
  • Loading branch information
jNullj committed Jun 10, 2023
1 parent 97f05d0 commit 6cac096
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions services/github/github-commit-activity.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ describe('GitHubCommitActivity', function () {
.with.property('prettyMessage', 'invalid branch')
})
})
describe('transformAuthorFilter', function () {
it('throws InvalidResponse on invalid branch', function () {
expect(() =>
GitHubCommitActivity.transformAuthorFilter({
message: 'Not Found',
})
)
.to.throw(InvalidResponse)
.with.property('prettyMessage', 'invalid branch')
})
})
describe('getIntervalQueryStartDate', function () {
/** @type {sinon.SinonFakeTimers} */
let clock
Expand Down

0 comments on commit 6cac096

Please sign in to comment.