Skip to content

Commit 8807f1e

Browse files
committed
refactor: - Fix 3 SonarQube S4623 warnings: unnecessary use of "undefined"
"undefined" should not be passed as the value of optional parameters typescript:S4623
1 parent 88f757a commit 8807f1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Task/Recurrence.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ describe('Recurrence - with removeScheduledDateOnRecurrence', () => {
251251
});
252252

253253
// Act
254-
const next = recurrence!.next(undefined);
254+
const next = recurrence!.next();
255255

256256
// Assert
257257
expect(next!.startDate).toEqualMoment(moment('2022-02-01'));
@@ -269,7 +269,7 @@ describe('Recurrence - with removeScheduledDateOnRecurrence', () => {
269269
});
270270

271271
// Act
272-
const next = recurrence!.next(undefined);
272+
const next = recurrence!.next();
273273

274274
// Assert
275275
expect(next!.scheduledDate).not.toBeNull();
@@ -304,7 +304,7 @@ describe('Recurrence - with removeScheduledDateOnRecurrence', () => {
304304
});
305305

306306
// Act
307-
const next = recurrence!.next(undefined);
307+
const next = recurrence!.next();
308308

309309
// Assert
310310
expect(next!.startDate).toEqualMoment(moment('2022-01-13'));

0 commit comments

Comments
 (0)