Skip to content

Commit

Permalink
Removed test for election API endpoint that doesn't throw currently w…
Browse files Browse the repository at this point in the history
…hen no election is found
  • Loading branch information
marcvelmer committed Aug 9, 2024
1 parent d56662d commit ef8eebc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/api/election.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ describe('Election API tests', () => {
await expect(async () => {
await ElectionAPI.keys(URL, '0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFdeadbeef');
}).rejects.toThrow(ErrElectionNotFound);
await expect(async () => {
await ElectionAPI.list(URL, { electionId: '0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFdeadbeef' });
}).rejects.toThrow(ErrElectionNotFound);
}, 15000);
it('should throw when asking for the keys of an election which is not encrypted', async () => {
const voter = Wallet.createRandom();
Expand Down

0 comments on commit ef8eebc

Please sign in to comment.