Add test for old expiresAt date in integration

This commit is contained in:
2024-12-31 15:36:28 +01:00
parent 14b7446d77
commit 3abaeba76b

View File

@ -173,6 +173,22 @@ func runCreateElectionTests() {
"choices": [
"Gandhi"
]
}`),
Expect().Status().Equal(http.StatusUnprocessableEntity),
)
MustDo(
template,
Send().Body().String(`
{
"name": "Guy of the year",
"tokens": 100,
"areVotersKnown": false,
"maxVoters": 10,
"expiresAt": "2018-12-31T14:15:22Z",
"choices": [
"Gandhi"
]
}`),
Expect().Status().Equal(http.StatusUnprocessableEntity),
)