mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
linting
This commit is contained in:
parent
45d5c5e274
commit
1b229169c2
@ -20,7 +20,5 @@ module.exports = {
|
|||||||
setupFiles: ['<rootDir>/test/testSetup.js'],
|
setupFiles: ['<rootDir>/test/testSetup.js'],
|
||||||
testMatch: ['**/?(*.)+(spec|test).js?(x)'],
|
testMatch: ['**/?(*.)+(spec|test).js?(x)'],
|
||||||
// snapshotSerializers: ['jest-serializer-vue'],
|
// snapshotSerializers: ['jest-serializer-vue'],
|
||||||
transformIgnorePatterns: [
|
transformIgnorePatterns: ['<rootDir>/node_modules/(?!vee-validate/dist/rules)'],
|
||||||
'<rootDir>/node_modules/(?!vee-validate/dist/rules)',
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,15 +89,17 @@ describe('Login', () => {
|
|||||||
it('shows a warning when no valid Email is entered', async () => {
|
it('shows a warning when no valid Email is entered', async () => {
|
||||||
wrapper.find('input[placeholder="Email"]').setValue('no_valid@Email')
|
wrapper.find('input[placeholder="Email"]').setValue('no_valid@Email')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
await expect(wrapper.find('.invalid-feedback').text())
|
await expect(wrapper.find('.invalid-feedback').text()).toEqual(
|
||||||
.toEqual('The Email field must be a valid email')
|
'The Email field must be a valid email',
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('shows a warning when password is too short', async () => {
|
it('shows a warning when password is too short', async () => {
|
||||||
wrapper.find('input[placeholder="form.password"]').setValue('1234')
|
wrapper.find('input[placeholder="form.password"]').setValue('1234')
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
await expect(wrapper.find('.invalid-feedback').text())
|
await expect(wrapper.find('.invalid-feedback').text()).toEqual(
|
||||||
.toEqual('The Password field must be at least 6 characters')
|
'The Password field must be at least 6 characters',
|
||||||
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user