Skip to content

Commit

Permalink
Filter comments by content instead of actor (#519)
Browse files Browse the repository at this point in the history
* Filter comments by content instead of actor

* Remove dead actor code

* WIP fix tests

* Fix test
  • Loading branch information
luketomlinson committed Jul 12, 2021
1 parent 678bfc7 commit d901397
Show file tree
Hide file tree
Showing 11 changed files with 122 additions and 160 deletions.
1 change: 0 additions & 1 deletion __tests__/any-of-labels.spec.ts
Expand Up @@ -1139,7 +1139,6 @@ class IssuesProcessorBuilder {
build(): IssuesProcessorMock {
return new IssuesProcessorMock(
this._options,
async () => 'abot',
async p => (p === 1 ? this._issues : []),
async () => [],
async () => new Date().toDateString()
Expand Down
1 change: 0 additions & 1 deletion __tests__/assignees.spec.ts
Expand Up @@ -48,7 +48,6 @@ describe('assignees options', (): void => {
const setProcessor = () => {
processor = new IssuesProcessorMock(
opts,
async () => 'abot',
async p => (p === 1 ? testIssueList : []),
async () => [],
async () => new Date().toDateString()
Expand Down
5 changes: 0 additions & 5 deletions __tests__/classes/issues-processor-mock.ts
Expand Up @@ -6,7 +6,6 @@ import {IIssuesProcessorOptions} from '../../src/interfaces/issues-processor-opt
export class IssuesProcessorMock extends IssuesProcessor {
constructor(
options: IIssuesProcessorOptions,
getActor?: () => Promise<string>,
getIssues?: (page: number) => Promise<Issue[]>,
listIssueComments?: (
issueNumber: number,
Expand All @@ -19,10 +18,6 @@ export class IssuesProcessorMock extends IssuesProcessor {
) {
super(options);

if (getActor) {
this.getActor = getActor;
}

if (getIssues) {
this.getIssues = getIssues;
}
Expand Down

0 comments on commit d901397

Please sign in to comment.