Closed Luwangel closed 4 years ago
@all-contributors please add @Luwangel for code
@zyhou
I've put up a pull request to add @Luwangel! :tada:
Pour info, j'ai revert les changements, suite à l'ajout d'un nvmrc et de la mise à jour de la documentation pour dire que maintenant il faut node v14. Nous avons plus besoin de cette dep, voir https://stackoverflow.com/questions/23199909/using-tolocalestring-in-node-js/56624712#56624712
What:
I'm fixing the tests which are broken due to bad date format. It occurs locally and not on Travis but it's easier to write tests when they run in every environment.
Why:
Node doesn't include all the locales. But in the website, we convert dates to french using
Date().toLocaleDateString()
. By doing that, we have a mismatch inside the tests between the real date (English) and the expected result (French)2020 M10 20, Tue
!==mardi 20 octobre 2020
.Everything works well in the browser because it includes the French locale. The browsers which don't have the french locale will have an English date. But it's not a problem outside of the tests.
How:
I added the
full-icu
package to dependencies to include the french locale. And we simply use it when runningjest
.Checklist:
Documentation added to the README.md file