mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
linting
This commit is contained in:
parent
ee250451eb
commit
dbb583e958
@ -21,8 +21,8 @@ module.exports = {
|
||||
testMatch: ['**/?(*.)+(spec|test).js?(x)'],
|
||||
// snapshotSerializers: ['jest-serializer-vue'],
|
||||
transformIgnorePatterns: [
|
||||
// '<rootDir>/node_modules/',
|
||||
// '<rootDir>/node_modules/(?!vee-validate/dist/rules)',
|
||||
// '<rootDir>/node_modules/',
|
||||
// '<rootDir>/node_modules/(?!vee-validate/dist/rules)',
|
||||
],
|
||||
// preset: '@vue/cli-plugin-unit-jest',
|
||||
// preset: '@vue/cli-plugin-unit-jest',
|
||||
}
|
||||
|
||||
@ -50,23 +50,23 @@ describe('Login', () => {
|
||||
|
||||
describe('links', () => {
|
||||
it('has a link "Forgot Password?"', () => {
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(0).text())
|
||||
.toEqual('site.login.forgot_pwd')
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(0).text()).toEqual(
|
||||
'site.login.forgot_pwd',
|
||||
)
|
||||
})
|
||||
|
||||
it('links to /password when clicking "Forgot Password?"', () => {
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(0).props().to)
|
||||
.toBe('/password')
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(0).props().to).toBe('/password')
|
||||
})
|
||||
|
||||
it('has a link "Create new account"', () => {
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(1).text())
|
||||
.toEqual('site.login.new_wallet')
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(1).text()).toEqual(
|
||||
'site.login.new_wallet',
|
||||
)
|
||||
})
|
||||
|
||||
it('links to /register when clicking "Create new account"', () => {
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(1).props().to)
|
||||
.toBe('/register')
|
||||
expect(wrapper.findAllComponents(RouterLinkStub).at(1).props().to).toBe('/register')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user