chainflip-io / chainflip-backend

The Chainflip backend repo, including the Chainflip Node and CFE.
50 stars 14 forks source link

feat: election test helpers #5170

Closed dandanlen closed 2 months ago

dandanlen commented 2 months ago

This refactors the election access mocks and adds some helpers.

This makes it more obvious that, for example, we should not update an election's state before creating it, or that tests should have no control over the election ids.