Add integration tests
This commit is contained in:
parent
57aa6deac4
commit
765f3db869
|
@ -1144,9 +1144,7 @@ class IssuesProcessor {
|
||||||
page
|
page
|
||||||
});
|
});
|
||||||
(_a = this.statistics) === null || _a === void 0 ? void 0 : _a.incrementFetchedItemsCount(issueResult.data.length);
|
(_a = this.statistics) === null || _a === void 0 ? void 0 : _a.incrementFetchedItemsCount(issueResult.data.length);
|
||||||
return issueResult.data.map((issue) => {
|
return issueResult.data.map((issue) => new issue_1.Issue(this.options, issue));
|
||||||
return new issue_1.Issue(this.options, issue);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
throw Error(`Getting issues was blocked by the error: ${error.message}`);
|
throw Error(`Getting issues was blocked by the error: ${error.message}`);
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class Issue implements IIssue {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
options: Readonly<IIssuesProcessorOptions>,
|
options: Readonly<IIssuesProcessorOptions>,
|
||||||
issue: Readonly<OctokitIssue | Readonly<IIssue>>
|
issue: Readonly<OctokitIssue> | Readonly<IIssue>
|
||||||
) {
|
) {
|
||||||
this._options = options;
|
this._options = options;
|
||||||
this.title = issue.title;
|
this.title = issue.title;
|
||||||
|
|
|
@ -572,9 +572,10 @@ export class IssuesProcessor {
|
||||||
});
|
});
|
||||||
this.statistics?.incrementFetchedItemsCount(issueResult.data.length);
|
this.statistics?.incrementFetchedItemsCount(issueResult.data.length);
|
||||||
|
|
||||||
return issueResult.data.map((issue): Issue => {
|
return issueResult.data.map(
|
||||||
return new Issue(this.options, issue as Readonly<OctokitIssue>);
|
(issue): Issue =>
|
||||||
});
|
new Issue(this.options, issue as Readonly<OctokitIssue>)
|
||||||
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw Error(`Getting issues was blocked by the error: ${error.message}`);
|
throw Error(`Getting issues was blocked by the error: ${error.message}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue