@@ -15,37 +15,9 @@ describe(convertMaxLineLength, () => {
15
15
} ) ;
16
16
} ) ;
17
17
18
- test ( "conversion with one argument true value " , ( ) => {
18
+ test ( "conversion with one argument number " , ( ) => {
19
19
const result = convertMaxLineLength ( {
20
- ruleArguments : [ true ] ,
21
- } ) ;
22
-
23
- expect ( result ) . toEqual ( {
24
- rules : [
25
- {
26
- ruleName : "max-len" ,
27
- } ,
28
- ] ,
29
- } ) ;
30
- } ) ;
31
-
32
- test ( "conversion with two arguments and first is false" , ( ) => {
33
- const result = convertMaxLineLength ( {
34
- ruleArguments : [ false , 123 ] ,
35
- } ) ;
36
-
37
- expect ( result ) . toEqual ( {
38
- rules : [
39
- {
40
- ruleName : "max-len" ,
41
- } ,
42
- ] ,
43
- } ) ;
44
- } ) ;
45
-
46
- test ( "conversion with two arguments and second is number" , ( ) => {
47
- const result = convertMaxLineLength ( {
48
- ruleArguments : [ true , 123 ] ,
20
+ ruleArguments : [ 123 ] ,
49
21
} ) ;
50
22
51
23
expect ( result ) . toEqual ( {
@@ -58,10 +30,9 @@ describe(convertMaxLineLength, () => {
58
30
} ) ;
59
31
} ) ;
60
32
61
- test ( "conversion with two arguments and second is object" , ( ) => {
33
+ test ( "conversion with one object argument " , ( ) => {
62
34
const result = convertMaxLineLength ( {
63
35
ruleArguments : [
64
- true ,
65
36
{
66
37
limit : 123 ,
67
38
"ignore-pattern" : "^import |^export {(.*?)}" ,
@@ -91,7 +62,6 @@ describe(convertMaxLineLength, () => {
91
62
test ( "conversion with check-strings inverting value true to false" , ( ) => {
92
63
const result = convertMaxLineLength ( {
93
64
ruleArguments : [
94
- true ,
95
65
{
96
66
limit : 123 ,
97
67
"check-strings" : true ,
@@ -117,7 +87,6 @@ describe(convertMaxLineLength, () => {
117
87
test ( "conversion with check-strings inverting value false to true" , ( ) => {
118
88
const result = convertMaxLineLength ( {
119
89
ruleArguments : [
120
- true ,
121
90
{
122
91
limit : 123 ,
123
92
"check-strings" : false ,
@@ -143,7 +112,6 @@ describe(convertMaxLineLength, () => {
143
112
test ( "conversion with check-regex inverting value true to false" , ( ) => {
144
113
const result = convertMaxLineLength ( {
145
114
ruleArguments : [
146
- true ,
147
115
{
148
116
limit : 123 ,
149
117
"check-regex" : true ,
@@ -169,7 +137,6 @@ describe(convertMaxLineLength, () => {
169
137
test ( "conversion with check-regex inverting value false to true" , ( ) => {
170
138
const result = convertMaxLineLength ( {
171
139
ruleArguments : [
172
- true ,
173
140
{
174
141
limit : 123 ,
175
142
"check-regex" : false ,
0 commit comments