diff --git a/__tests__/main.spec.ts b/__tests__/main.spec.ts index 80d660e8..e71a431e 100644 --- a/__tests__/main.spec.ts +++ b/__tests__/main.spec.ts @@ -30,7 +30,7 @@ test('processing an issue with no label will make it stale and close it, if it i expect(processor.closedIssues).toHaveLength(1); }); -test('processing an issue with no label and a start date as ECMAScript epoch in seconds being before the issue creation date will not make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { +test('processing an issue with no label and a start date as ECMAScript epoch in seconds being before the issue creation date will neither make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { expect.assertions(2); const january2000 = 946681200000; const opts: IIssuesProcessorOptions = { @@ -62,7 +62,7 @@ test('processing an issue with no label and a start date as ECMAScript epoch in expect(processor.closedIssues.length).toStrictEqual(0); }); -test('processing an issue with no label and a start date as ECMAScript epoch in seconds being after the issue creation date will not make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { +test('processing an issue with no label and a start date as ECMAScript epoch in seconds being after the issue creation date will neither make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { expect.assertions(2); const january2021 = 1609455600000; const opts: IIssuesProcessorOptions = { @@ -94,7 +94,7 @@ test('processing an issue with no label and a start date as ECMAScript epoch in expect(processor.closedIssues.length).toStrictEqual(0); }); -test('processing an issue with no label and a start date as ECMAScript epoch in milliseconds being before the issue creation date will not make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { +test('processing an issue with no label and a start date as ECMAScript epoch in milliseconds being before the issue creation date will neither make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { expect.assertions(2); const january2000 = 946681200000000; const opts: IIssuesProcessorOptions = { @@ -126,7 +126,7 @@ test('processing an issue with no label and a start date as ECMAScript epoch in expect(processor.closedIssues.length).toStrictEqual(0); }); -test('processing an issue with no label and a start date as ECMAScript epoch in milliseconds being after the issue creation date will not make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { +test('processing an issue with no label and a start date as ECMAScript epoch in milliseconds being after the issue creation date will neither make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { expect.assertions(2); const january2021 = 1609455600000; const opts: IIssuesProcessorOptions = { @@ -190,7 +190,7 @@ test('processing an issue with no label and a start date as ISO 8601 being befor expect(processor.closedIssues.length).toStrictEqual(1); }); -test('processing an issue with no label and a start date as ISO 8601 being after the issue creation date will not make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { +test('processing an issue with no label and a start date as ISO 8601 being after the issue creation date will neither make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { expect.assertions(2); const january2021 = '2021-01-01T00:00:00Z'; const opts: IIssuesProcessorOptions = { @@ -254,7 +254,7 @@ test('processing an issue with no label and a start date as RFC 2822 being befor expect(processor.closedIssues.length).toStrictEqual(1); }); -test('processing an issue with no label and a start date as RFC 2822 being after the issue creation date will not make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { +test('processing an issue with no label and a start date as RFC 2822 being after the issue creation date will neither make it stale nor close it when it is old enough and days-before-close is set to 0', async () => { expect.assertions(2); const january2021 = 'January 1, 2021 00:00:00'; const opts: IIssuesProcessorOptions = { diff --git a/dist/index.js b/dist/index.js index de1d6ff8..09301e04 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1114,7 +1114,7 @@ class IssuesProcessor { var _a; return __awaiter(this, void 0, void 0, function* () { const issueLogger = new issue_logger_1.IssueLogger(issue); - issueLogger.info(`The $$type is not closed nor locked. Trying to remove the close label...`); + issueLogger.info(`The $$type is neither closed nor locked. Trying to remove the close label...`); if (!closeLabel) { issueLogger.info(logger_service_1.LoggerService.white('├──'), `The ${issueLogger.createOptionLink(IssuesProcessor._getCloseLabelUsedOptionName(issue))} option was not set`); issueLogger.info(logger_service_1.LoggerService.white('└──'), `Skipping the removal of the close label`); diff --git a/src/classes/issues-processor.ts b/src/classes/issues-processor.ts index 8bbb1361..8426fefa 100644 --- a/src/classes/issues-processor.ts +++ b/src/classes/issues-processor.ts @@ -1195,7 +1195,7 @@ export class IssuesProcessor { const issueLogger: IssueLogger = new IssueLogger(issue); issueLogger.info( - `The $$type is not closed nor locked. Trying to remove the close label...` + `The $$type is neither closed nor locked. Trying to remove the close label...` ); if (!closeLabel) {