This PR fixes a failure of the DateView test caused by different implementations of toLocaleString rendering different strings (e.g. connectors between year and hour)
Changes
instead of full string equality, just check the presence of localized date, hour and timezone components
Description
This PR fixes a failure of the
DateView
test caused by different implementations oftoLocaleString
rendering different strings (e.g. connectors between year and hour)Changes
How Has This Been Tested?
PR Quality Checklist
react-i18next
library (useTranslation hook and/or Trans component), see an example herenpm run build
builds without any errorIn order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.