Skip to content

Commit 1b42982

Browse files
committed
Fixing typescript in the test
1 parent 0d4535a commit 1b42982

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/index.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ const e2eTest = (name: string, options?: ForLoopConfiguration) => {
1616

1717
expect(actual).toHaveLength(1);
1818

19-
// @ts-expect-error We need to delete a non-optional property
2019
delete actual[0].uri;
21-
// @ts-expect-error We need to delete a non-optional property
2220
delete actual[0].targetFolder;
23-
// @ts-expect-error We need to delete a non-optional property
2421
delete actual[0].sourceFolder;
25-
// @ts-expect-error We need to delete a non-optional property
2622
delete expected.uri;
27-
// @ts-expect-error We need to delete a non-optional property
2823
delete expected.targetFolder;
29-
// @ts-expect-error We need to delete a non-optional property
3024
delete expected.sourceFolder;
3125

3226
expect(actual[0]).toEqual(expected);
@@ -61,7 +55,6 @@ describe("ForLoop", () => {
6155
});
6256

6357
test("should set default for format in case of explicit empty value", () => {
64-
// @ts-expect-error Passed value is not correct by type definition
6558
const forLoop = new ForLoop({ format: null });
6659
expect(forLoop.options.format).toEqual("${name} (${i})");
6760
});
@@ -146,7 +139,6 @@ describe("ForLoop", () => {
146139
test("should handle default config", e2eTest("default"));
147140
test(
148141
"should handle custom config",
149-
// @ts-expect-error Something wrong with the infered type, optional fields are mandatory
150142
e2eTest("custom", {
151143
maxValue: 4,
152144
startIndex: 11,
@@ -157,7 +149,6 @@ describe("ForLoop", () => {
157149
);
158150
test(
159151
"should handle iterations",
160-
// @ts-expect-error Something wrong with the infered type, optional fields are mandatory
161152
e2eTest("iterations", {
162153
iterations: {
163154
stress: 4,

0 commit comments

Comments
 (0)