22 Commits

Author SHA1 Message Date
a1af7a48b2 Fix maxVoters check and add unit tests 2025-01-21 09:24:51 +01:00
5668b1cd6a Insert election with uuid instead of auto-generated id 2025-01-20 10:04:15 +01:00
62562272f1 Add tests for GetElection 2025-01-17 14:55:54 +01:00
410e8f39d3 Add some more tests and implement getElection 2025-01-17 14:49:51 +01:00
60d1bb382c Write TestGetElectionResults_NotFound 2025-01-17 13:59:37 +01:00
96133f00de Add variable for baseUri 2025-01-14 17:32:44 +01:00
1428534dc3 Write test for getElectionResults 2025-01-14 17:28:45 +01:00
3c2d45083f Put API behind /api 2025-01-14 12:40:30 +01:00
d1225d3258 Fix slow-ass code 2025-01-13 20:06:55 +01:00
9cc85b9a47 Fix test that wasn't testing the correct thing 2025-01-11 18:39:46 +01:00
98421c8c06 Remove useless variable 2025-01-11 18:38:07 +01:00
cad5cfe636 Move voting to a new endpoint
/election/{id}/votes
2025-01-11 18:29:01 +01:00
0b0ecaba9b Write test for expired election 2025-01-09 18:26:22 +01:00
b25e090a7b Write test for max voters reached (only in unknown voters election 2025-01-09 18:22:58 +01:00
4fbf72d84d Add tests for already voted cases 2025-01-09 18:12:18 +01:00
d77bef4bda Write some tests for createVotes before refactoring 2025-01-09 15:35:16 +01:00
bf3368b736 Implement mocking and update tests for createElection 2025-01-08 17:18:53 +01:00
bbbdb637b0 Add variable for urlPath 2025-01-02 17:44:44 +01:00
941e9a36fb Add more test cases and add UniqueValues check 2025-01-01 19:47:55 +01:00
c9b7a5796e Add tests for createElection handler 2024-12-31 14:35:31 +01:00
9e96be5ff2 Rename is_anonymous to are_voters_known 2024-12-30 15:37:23 +01:00
f1a951ce81 Write test skeleton 2024-12-28 17:58:01 +01:00