Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit e15605d

Browse files
committed
fix: correct tests
1 parent c24981f commit e15605d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/validations/after-or-equal.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,9 @@ test.group('Date | After Or Equal | Ref', () => {
451451
const reporter = new ApiErrorReporter(new MessagesBag({}), false)
452452
const afterDate = DateTime.local().plus({ days: 11 }).toISODate()
453453

454-
/*
454+
/*
455455
Using toISO because toISODate will not include hours, minutes, seconds, ...
456-
So if later when it get converted to datetime again, the test will fail
456+
So if later when it get converted to datetime again, the test will fail
457457
because `publishedAtSameDate` would then have 0 in hours, minutes, seconds, ... but datetime in ref is not.
458458
*/
459459
const sameDate = DateTime.local().plus({ days: 10 }).plus({ hour: 1 }).toISO()
@@ -471,13 +471,13 @@ test.group('Date | After Or Equal | Ref', () => {
471471
}
472472

473473
afterOrEqual.validate(
474-
DateTime.fromISO(afterDate),
474+
DateTime.fromISO(afterDate!),
475475
compile(validator.refs.afterDate).compiledOptions!,
476476
validator
477477
)
478478

479479
afterOrEqual.validate(
480-
DateTime.fromISO(sameDate),
480+
DateTime.fromISO(sameDate!),
481481
compile(validator.refs.afterDate).compiledOptions!,
482482
validator
483483
)

0 commit comments

Comments
 (0)