diff --git a/src/comments/convertComments.test.ts b/src/comments/convertComments.test.ts index fa9ffeba2..48d6b0f1c 100644 --- a/src/comments/convertComments.test.ts +++ b/src/comments/convertComments.test.ts @@ -10,7 +10,7 @@ const createStubDependencies = ( }); describe("convertComments", () => { - it("returns an empty result when --comment is not provided", async () => { + it("returns an empty result when --comments is not provided", async () => { // Arrange const dependencies = createStubDependencies(); @@ -24,7 +24,7 @@ describe("convertComments", () => { }); }); - it("returns an error when --comment is given as a boolean value", async () => { + it("returns an error when --comments is given as a boolean value", async () => { // Arrange const dependencies = createStubDependencies(); diff --git a/src/comments/convertComments.ts b/src/comments/convertComments.ts index 4e456c7b3..2332c0e28 100644 --- a/src/comments/convertComments.ts +++ b/src/comments/convertComments.ts @@ -10,7 +10,7 @@ export type ConvertCommentsDependencies = { }; const noGlobsResult: ResultWithDataStatus = { - errors: [new Error("--comment requires file path globs to be passed.")], + errors: [new Error("--comments requires file path globs to be passed.")], status: ResultStatus.Failed, }; diff --git a/src/reporting/reportCommentResults.test.ts b/src/reporting/reportCommentResults.test.ts index 34e396693..e948da6bb 100644 --- a/src/reporting/reportCommentResults.test.ts +++ b/src/reporting/reportCommentResults.test.ts @@ -13,7 +13,7 @@ describe("reportCommentResults", () => { // Assert expectEqualWrites( logger.stdout.write, - `♻ Consider using --comment to replace TSLint comment directives in your source files. ♻`, + `♻ Consider using --comments to replace TSLint comment directives in your source files. ♻`, ); }); @@ -28,12 +28,12 @@ describe("reportCommentResults", () => { // Assert expectEqualWrites( logger.stderr.write, - `❌ 1 error converting TSLint comment directives in --comment files. ❌`, + `❌ 1 error converting TSLint comment directives in --comments files. ❌`, ` Check ${logger.debugFileName} for details.`, ); expectEqualWrites( logger.info.write, - `1 error converting TSLint comment directives in --comment files:`, + `1 error converting TSLint comment directives in --comments files:`, ` * Hello`, ); }); @@ -49,12 +49,12 @@ describe("reportCommentResults", () => { // Assert expectEqualWrites( logger.stderr.write, - `❌ 2 errors converting TSLint comment directives in --comment files. ❌`, + `❌ 2 errors converting TSLint comment directives in --comments files. ❌`, ` Check ${logger.debugFileName} for details.`, ); expectEqualWrites( logger.info.write, - `2 errors converting TSLint comment directives in --comment files:`, + `2 errors converting TSLint comment directives in --comments files:`, ` * Hello`, ` * World`, ); diff --git a/src/reporting/reportCommentResults.ts b/src/reporting/reportCommentResults.ts index 081bbc451..50f728847 100644 --- a/src/reporting/reportCommentResults.ts +++ b/src/reporting/reportCommentResults.ts @@ -15,7 +15,7 @@ export const reportCommentResults = ( if (commentsResult.status === ResultStatus.Failed) { const headline = `${commentsResult.errors.length} error${ commentsResult.errors.length === 1 ? "" : "s" - } converting TSLint comment directives in --comment files`; + } converting TSLint comment directives in --comments files`; dependencies.logger.stderr.write(chalk.magentaBright(`${EOL}❌ ${headline}. ❌${EOL}`)); dependencies.logger.stderr.write( @@ -33,7 +33,7 @@ export const reportCommentResults = ( if (commentsResult.data === undefined) { dependencies.logger.stdout.write( chalk.magentaBright( - `${EOL}♻ Consider using --comment to replace TSLint comment directives in your source files. ♻${EOL}`, + `${EOL}♻ Consider using --comments to replace TSLint comment directives in your source files. ♻${EOL}`, ), ); return;