File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const createStubDependencies = (
10
10
} ) ;
11
11
12
12
describe ( "convertComments" , ( ) => {
13
- it ( "returns an empty result when --comment is not provided" , async ( ) => {
13
+ it ( "returns an empty result when --comments is not provided" , async ( ) => {
14
14
// Arrange
15
15
const dependencies = createStubDependencies ( ) ;
16
16
@@ -24,7 +24,7 @@ describe("convertComments", () => {
24
24
} ) ;
25
25
} ) ;
26
26
27
- it ( "returns an error when --comment is given as a boolean value" , async ( ) => {
27
+ it ( "returns an error when --comments is given as a boolean value" , async ( ) => {
28
28
// Arrange
29
29
const dependencies = createStubDependencies ( ) ;
30
30
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export type ConvertCommentsDependencies = {
10
10
} ;
11
11
12
12
const noGlobsResult : ResultWithDataStatus < string [ ] > = {
13
- errors : [ new Error ( "--comment requires file path globs to be passed." ) ] ,
13
+ errors : [ new Error ( "--comments requires file path globs to be passed." ) ] ,
14
14
status : ResultStatus . Failed ,
15
15
} ;
16
16
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ describe("reportCommentResults", () => {
13
13
// Assert
14
14
expectEqualWrites (
15
15
logger . stdout . write ,
16
- `♻ Consider using --comment to replace TSLint comment directives in your source files. ♻` ,
16
+ `♻ Consider using --comments to replace TSLint comment directives in your source files. ♻` ,
17
17
) ;
18
18
} ) ;
19
19
@@ -28,12 +28,12 @@ describe("reportCommentResults", () => {
28
28
// Assert
29
29
expectEqualWrites (
30
30
logger . stderr . write ,
31
- `❌ 1 error converting TSLint comment directives in --comment files. ❌` ,
31
+ `❌ 1 error converting TSLint comment directives in --comments files. ❌` ,
32
32
` Check ${ logger . debugFileName } for details.` ,
33
33
) ;
34
34
expectEqualWrites (
35
35
logger . info . write ,
36
- `1 error converting TSLint comment directives in --comment files:` ,
36
+ `1 error converting TSLint comment directives in --comments files:` ,
37
37
` * Hello` ,
38
38
) ;
39
39
} ) ;
@@ -49,12 +49,12 @@ describe("reportCommentResults", () => {
49
49
// Assert
50
50
expectEqualWrites (
51
51
logger . stderr . write ,
52
- `❌ 2 errors converting TSLint comment directives in --comment files. ❌` ,
52
+ `❌ 2 errors converting TSLint comment directives in --comments files. ❌` ,
53
53
` Check ${ logger . debugFileName } for details.` ,
54
54
) ;
55
55
expectEqualWrites (
56
56
logger . info . write ,
57
- `2 errors converting TSLint comment directives in --comment files:` ,
57
+ `2 errors converting TSLint comment directives in --comments files:` ,
58
58
` * Hello` ,
59
59
` * World` ,
60
60
) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const reportCommentResults = (
15
15
if ( commentsResult . status === ResultStatus . Failed ) {
16
16
const headline = `${ commentsResult . errors . length } error${
17
17
commentsResult . errors . length === 1 ? "" : "s"
18
- } converting TSLint comment directives in --comment files`;
18
+ } converting TSLint comment directives in --comments files`;
19
19
20
20
dependencies . logger . stderr . write ( chalk . magentaBright ( `${ EOL } ❌ ${ headline } . ❌${ EOL } ` ) ) ;
21
21
dependencies . logger . stderr . write (
@@ -33,7 +33,7 @@ export const reportCommentResults = (
33
33
if ( commentsResult . data === undefined ) {
34
34
dependencies . logger . stdout . write (
35
35
chalk . magentaBright (
36
- `${ EOL } ♻ Consider using --comment to replace TSLint comment directives in your source files. ♻${ EOL } ` ,
36
+ `${ EOL } ♻ Consider using --comments to replace TSLint comment directives in your source files. ♻${ EOL } ` ,
37
37
) ,
38
38
) ;
39
39
return ;
You can’t perform that action at this time.
0 commit comments