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 authored Jul 12, 2021
1 parent 678bfc7 commit d901397
Showing 11 changed files with 122 additions and 160 deletions.
1 change: 0 additions & 1 deletion __tests__/any-of-labels.spec.ts
Original file line number Diff line number Diff line change
@@ -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()
1 change: 0 additions & 1 deletion __tests__/assignees.spec.ts
Original file line number Diff line number Diff line change
@@ -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()
5 changes: 0 additions & 5 deletions __tests__/classes/issues-processor-mock.ts
Original file line number Diff line number Diff line change
@@ -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,
@@ -19,10 +18,6 @@ export class IssuesProcessorMock extends IssuesProcessor {
) {
super(options);

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

if (getIssues) {
this.getIssues = getIssues;
}
Loading

0 comments on commit d901397

Please sign in to comment.