Closed danwallach closed 2 years ago
but for some reason the
afterAll
part was executing before the tests were complete, resulting in some complaints from Jest. (Why? Unclear.)
Figured it out: fast-check expects you to await fc.assert
when asserting and async property.
Cool. Async stuff in TypeScript can be wildly non-obvious.
Lots of effort to get async encryption working, but now it all seems happy. Some of the nasty problems included:
nonce
field of theCiphertextBallot
afterAll
part was executing before the tests were complete, resulting in some complaints from Jest. (Why? Unclear.)I'm nowhere near sure that we're bug-for-bug compatible with the Python code, but at least we're kinda sorta actually working.