-
Notifications
You must be signed in to change notification settings - Fork 7
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
WAITP-1269: Fix front end tests config #4726
Conversation
|
||
const DATE_FORMAT = 'YYYY-MM-DD'; | ||
|
||
export const formatDateForApi = (date, timezone) => { |
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.
The timezone prop was never being used and removing support for it means that we can completely remove moment-timezone as a dependency from web-frontend.
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.
Nice one. There is actually a function in utils
called formatDateForApi
which looks like it does the same thing. Might not be worth swapping it out tho, since we are going to eventually get rid of web-frontend
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.
Good spotting but yeah probably not worth it at this point in web-frontend.
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.
Nice one, thanks for doing this!
|
||
const DATE_FORMAT = 'YYYY-MM-DD'; | ||
|
||
export const formatDateForApi = (date, timezone) => { |
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.
Nice one. There is actually a function in utils
called formatDateForApi
which looks like it does the same thing. Might not be worth swapping it out tho, since we are going to eventually get rid of web-frontend
Issue #: WAITP-1269: Fix front end tests
Changes: