diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 470b3efbb..2996ffeec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -399,7 +399,7 @@ jobs: report_name: Coverage Frontend type: lcov result_path: ./coverage/lcov.info - min_coverage: 84 + min_coverage: 86 token: ${{ github.token }} ############################################################################## diff --git a/frontend/src/views/Pages/ForgotPassword.spec.js b/frontend/src/views/Pages/ForgotPassword.spec.js index c77689425..47c9fad56 100644 --- a/frontend/src/views/Pages/ForgotPassword.spec.js +++ b/frontend/src/views/Pages/ForgotPassword.spec.js @@ -8,17 +8,6 @@ const localVue = global.localVue const mockRouterPush = jest.fn() - -const mocks = { - $t: jest.fn((t) => t), - $router: { - push: mockRouterPush, - }, - $apollo: { - query: mockAPIcall, - }, -} - const stubs = { RouterLink: RouterLinkStub, } @@ -63,7 +52,7 @@ describe('ForgotPassword', () => { 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') }) diff --git a/frontend/src/views/Pages/ResetPassword.vue b/frontend/src/views/Pages/ResetPassword.vue index 9ee3a2fa6..478a8db8c 100644 --- a/frontend/src/views/Pages/ResetPassword.vue +++ b/frontend/src/views/Pages/ResetPassword.vue @@ -82,7 +82,6 @@ export default { }, methods: { async onSubmit() { - console.log('OnSubmit', this.$route.params.optin, this.form.password) this.$apollo .mutate({ mutation: setPassword, @@ -92,12 +91,10 @@ export default { }, }) .then(() => { - console.log('then') this.form.password = '' this.$router.push('/thx/reset') }) .catch((error) => { - console.log('catch', error.message) if (error.message.includes('Code is older than 10 minutes')) { this.$toasted.error(error.message) this.$router.push('/password/reset')