generated from Seekra/repository-template
Language switch button unit test #108
Reference in New Issue
Block a user
Delete Branch "testing/language-switch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Language switch button unit test
Add a unit test for the language switch component (src/features/i18n/components/LanguageSwitchButton.vue).
Summary
Related issues
Closes: #86
Why did you put it into
src/utils/__tests__/instead ofsrc/features/i18n/components/__tests__/?@@ -0,0 +1,114 @@/*Can you please use the variant without the
*indentation? That is more common, cleaner and better for automated tools.@@ -0,0 +47,4 @@document.documentElement.dir = '';});test('renders correctly with initial state closed', () => {Could you please fix the indentation to make it more readable?
The test does not work. Maybe you forgot adding
@vue/test-utilsto thedevDependenciessection inpackage.json?It workes for me.
I will improve it!
@jakob.scheid Please try again.
918d6768e8to27f696247dVery nice.