-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,8 +93,8 @@ describe.skip('entire benaloh flow', () => { | |
}).timeout(10000); | ||
|
||
async function placeVote(client: AVClient) { | ||
const voterId = 'B00000000001'; | ||
const voterEmail = '[email protected]' | ||
const voterId = Math.random().toString(); | ||
const voterEmail = '[email protected]' | ||
await client.requestAccessCode(voterId, voterEmail).catch((e) => { | ||
console.error(e); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,15 +20,14 @@ describe.skip('entire voter flow using OTP authorization', () => { | |
}); | ||
|
||
it('returns a receipt', async () => { | ||
const _performTest = async () => { | ||
const client = new AVClient(bulletinBoardHost + 'us'); | ||
await client.initialize(undefined, { | ||
privateKey: 'bcafc67ca4af6b462f60d494adb675d8b1cf57b16dfd8d110bbc2453709999b0', | ||
publicKey: '03b87d7fe793a621df27f44c20f460ff711d55545c58729f20b3fb6e871c53c49c' | ||
}); | ||
|
||
const voterId = Math.random().toString() | ||
const voterEmail = '[email protected]' | ||
const voterEmail = '[email protected]' | ||
await client.requestAccessCode(voterId, voterEmail).catch((e) => { | ||
console.error(e); | ||
expect.fail('AVClient#requestAccessCode failed.'); | ||
|
@@ -58,8 +57,6 @@ describe.skip('entire voter flow using OTP authorization', () => { | |
const receipt = await client.castBallot(affidavit); | ||
expect(receipt.trackingCode.length).to.eql(7); | ||
|
||
await _performTest(); | ||
} | ||
}).timeout(10000); | ||
|
||
async function extractOTPFromEmail() { | ||
|
@@ -99,7 +96,6 @@ describe.skip('entire voter flow using PoEC authorization', () => { | |
}); | ||
|
||
it('returns a receipt', async () => { | ||
const _performTest = async () => { | ||
const client = new AVClient(bulletinBoardHost + '2904b00f_5abcbf894df3_58'); | ||
await client.initialize(undefined, { | ||
privateKey: 'bcafc67ca4af6b462f60d494adb675d8b1cf57b16dfd8d110bbc2453709999b0', | ||
|
@@ -125,8 +121,6 @@ describe.skip('entire voter flow using PoEC authorization', () => { | |
const receipt = await client.castBallot(affidavit); | ||
expect(receipt.trackingCode.length).to.eql(7) | ||
|
||
await _performTest(); | ||
} | ||
}).timeout(10000); | ||
}) | ||
|
||
|