Add check for header in integration

This commit is contained in:
2024-12-31 15:35:29 +01:00
parent 225749f9b7
commit 14b7446d77

View File

@ -104,6 +104,7 @@ func runCreateElectionTests() {
]
}`),
Expect().Status().Equal(http.StatusOK),
Expect().Headers("Location").Contains("/election/1"),
)
MustDo(
@ -121,6 +122,7 @@ func runCreateElectionTests() {
]
}`),
Expect().Status().Equal(http.StatusOK),
Expect().Headers("Location").Contains("/election/2"),
)
MustDo(
@ -138,6 +140,7 @@ func runCreateElectionTests() {
]
}`),
Expect().Status().Equal(http.StatusOK),
Expect().Headers("Location").Contains("/election/3"),
Expect().Body().JSON().JQ(".voterIdentities").Len().Equal(10),
)