From ad34f105fa964b8a52467dfb10c492b2f174dfa7 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 4 May 2022 12:11:01 +0200 Subject: [PATCH] removed unused code / comments --- frontend/src/components/Auth/Carousel.vue | 1 - frontend/src/pages/ForgotPassword.spec.js | 18 -------------- frontend/src/pages/Login.spec.js | 30 ----------------------- 3 files changed, 49 deletions(-) diff --git a/frontend/src/components/Auth/Carousel.vue b/frontend/src/components/Auth/Carousel.vue index bcf3ab58d..635110cde 100644 --- a/frontend/src/components/Auth/Carousel.vue +++ b/frontend/src/components/Auth/Carousel.vue @@ -40,7 +40,6 @@ export default { .carousel { position: relative; height: 100%; - /*border-radius: 0% 50% 70% 0%/50% 70% 70% 50%;*/ } .carousel-inner { height: 100%; diff --git a/frontend/src/pages/ForgotPassword.spec.js b/frontend/src/pages/ForgotPassword.spec.js index 78b890327..7301bcf96 100644 --- a/frontend/src/pages/ForgotPassword.spec.js +++ b/frontend/src/pages/ForgotPassword.spec.js @@ -51,14 +51,6 @@ describe('ForgotPassword', () => { expect(wrapper.find('div.forgot-password').exists()).toBeTruthy() }) - // it('has a title', () => { - // expect(wrapper.find('h1').text()).toEqual('settings.password.reset') - // }) - - // it('has a subtitle', () => { - // expect(wrapper.find('p.text-lead').text()).toEqual('settings.password.subtitle') - // }) - describe('back button', () => { it('has a "back" button', () => { expect(wrapper.findComponent(RouterLinkStub).text()).toEqual('back') @@ -161,15 +153,5 @@ describe('ForgotPassword', () => { }) }) }) - - // describe('comingFrom login', () => { - // beforeEach(() => { - // wrapper = Wrapper(createMockObject('resetPassword')) - // }) - - // it('has another subtitle', () => { - // expect(wrapper.find('p.text-lead').text()).toEqual('settings.password.resend_subtitle') - // }) - // }) }) }) diff --git a/frontend/src/pages/Login.spec.js b/frontend/src/pages/Login.spec.js index 9fc751cba..036090e4f 100644 --- a/frontend/src/pages/Login.spec.js +++ b/frontend/src/pages/Login.spec.js @@ -63,42 +63,12 @@ describe('Login', () => { expect(wrapper.find('div.login-form').exists()).toBeTruthy() }) - // describe('Login header', () => { - // it('has a welcome message', () => { - // expect(wrapper.find('div.header').text()).toBe('site.login.heading site.login.community') - // }) - // }) - - // it('has a Community name', () => { - // expect(wrapper.find('.test-communitydata b').text()).toBe('Gradido Entwicklung') - // }) - - // it('has a Community description', () => { - // expect(wrapper.find('.test-communitydata p').text()).toBe( - // 'Die lokale Entwicklungsumgebung von Gradido.', - // ) - // }) - describe('links', () => { it('has a link "Forgot Password"', () => { expect(wrapper.findAllComponents(RouterLinkStub).at(0).text()).toEqual( 'settings.password.forgot_pwd', ) }) - - // it('links to /forgot-password when clicking "Forgot Password"', () => { - // expect(wrapper.findAllComponents(RouterLinkStub).at(0).props().to).toBe('/forgot-password') - // }) - - // it('has a link "Create new account"', () => { - // 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') - // }) }) describe('Login form', () => {