@@ -16,17 +16,11 @@ const e2eTest = (name: string, options?: ForLoopConfiguration) => {
16
16
17
17
expect ( actual ) . toHaveLength ( 1 ) ;
18
18
19
- // @ts -expect-error We need to delete a non-optional property
20
19
delete actual [ 0 ] . uri ;
21
- // @ts -expect-error We need to delete a non-optional property
22
20
delete actual [ 0 ] . targetFolder ;
23
- // @ts -expect-error We need to delete a non-optional property
24
21
delete actual [ 0 ] . sourceFolder ;
25
- // @ts -expect-error We need to delete a non-optional property
26
22
delete expected . uri ;
27
- // @ts -expect-error We need to delete a non-optional property
28
23
delete expected . targetFolder ;
29
- // @ts -expect-error We need to delete a non-optional property
30
24
delete expected . sourceFolder ;
31
25
32
26
expect ( actual [ 0 ] ) . toEqual ( expected ) ;
@@ -61,7 +55,6 @@ describe("ForLoop", () => {
61
55
} ) ;
62
56
63
57
test ( "should set default for format in case of explicit empty value" , ( ) => {
64
- // @ts -expect-error Passed value is not correct by type definition
65
58
const forLoop = new ForLoop ( { format : null } ) ;
66
59
expect ( forLoop . options . format ) . toEqual ( "${name} (${i})" ) ;
67
60
} ) ;
@@ -146,7 +139,6 @@ describe("ForLoop", () => {
146
139
test ( "should handle default config" , e2eTest ( "default" ) ) ;
147
140
test (
148
141
"should handle custom config" ,
149
- // @ts -expect-error Something wrong with the infered type, optional fields are mandatory
150
142
e2eTest ( "custom" , {
151
143
maxValue : 4 ,
152
144
startIndex : 11 ,
@@ -157,7 +149,6 @@ describe("ForLoop", () => {
157
149
) ;
158
150
test (
159
151
"should handle iterations" ,
160
- // @ts -expect-error Something wrong with the infered type, optional fields are mandatory
161
152
e2eTest ( "iterations" , {
162
153
iterations : {
163
154
stress : 4 ,
0 commit comments