-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated form list tests #79
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor requests.
web/frontend/tests/formIndex.spec.ts
Outdated
const user = sciper === SCIPER_USER ? User | ||
: sciper === SCIPER_ADMIN ? Admin | ||
: undefined; | ||
const user = sciper === SCIPER_USER ? User : sciper === SCIPER_ADMIN ? Admin : undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you read and understand this in one breath?
I think superfluous parentheses would help me:
const user = sciper === SCIPER_USER ? User : sciper === SCIPER_ADMIN ? Admin : undefined; | |
const user = sciper === SCIPER_USER ? User : ( sciper === SCIPER_ADMIN ? Admin : undefined ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree on the readability, but sadly this breaks the linting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a commit w/ linting on that line disabled, so we can either use that or leave it like before
This PR adds tests for the form list, including:
it does not for the moment contain internalization tests, which will be added later
closes #70