tests: don't use a hard-coded date in isPastDate
validator
#53
Labels
good first issue
Good for newcomers
isPastDate
validator
#53
In the following validator function, we use a hard-coded string with a date in the year "3000" to simulate a date in the future:
website-niaefeup-backend/src/test/kotlin/pt/up/fe/ni/website/backend/controller/ValidationTester.kt
Line 120 in 823edf9
It would be best to replace this with some logic that takes the current date and adds a day, for example.
PS: This way the tests won't break when we get to 3001 :p
The text was updated successfully, but these errors were encountered: