-
Notifications
You must be signed in to change notification settings - Fork 3
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
[TECH] Ajouter des tests sur le language switcher #442
[TECH] Ajouter des tests sur le language switcher #442
Conversation
c30c29c
to
3426b7b
Compare
I'm deploying this PR to these urls:
Please check it out! |
3426b7b
to
d38fd9b
Compare
const $i18n = { locale: 'fr-fr' } | ||
|
||
// when | ||
const wrapper = mount(LanguageSwitcher, { |
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.
Question : pourquoi passer sur le mount
plutôt que shallowMount
?
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.
mount
permet d'avoir le dom des composants enfants, ce que ne fait pas shallowMount
d38fd9b
to
19f3747
Compare
🦄 Problème
Le language switcher est à mon gout pas suffisament tester pour que je puisse le refactorer en toute aisance
🤖 Solution
Ajouter des tests snapshots pour couvrir l'affichage actuelle
🌈 Remarques
On peut relever qu'un test a été supprimé car il ne servait plus, n'ayant plus de différence entre pro.pix.org et pro.pix.fr
💯 Pour tester