Skip to content

Bugfix/validate date#104

Merged
spiftire merged 22 commits intodevelopfrom
bugfix/validate-date
Mar 1, 2021
Merged

Bugfix/validate date#104
spiftire merged 22 commits intodevelopfrom
bugfix/validate-date

Conversation

@spiftire
Copy link
Copy Markdown
Contributor

This PR uses feature/default-enums

Adds custom validator and tests for validating dates on election.

closes #94

@spiftire spiftire self-assigned this Feb 22, 2021
Comment thread src/helpers/isEarlierThan.ts
Comment thread tests/services/BallotService.test.ts Outdated
const updatedElection = this.manager.create(strippedElection!)
updatedElection.id = existingElection.id
await validateEntity(updatedElection)
await validateEntity(updatedElection, { strictGroups: true })
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be set by default

@spiftire spiftire merged commit 8a598c9 into develop Mar 1, 2021
@spiftire spiftire deleted the bugfix/validate-date branch March 1, 2021 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate election open date time is lower than close date time

3 participants