Remove console.log coverage of frontend set to 86%

This commit is contained in:
elweyn 2021-12-07 12:34:10 +01:00
parent b54b96feca
commit 4afd3ffe0a
3 changed files with 2 additions and 16 deletions

View File

@ -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 }}
##############################################################################

View File

@ -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')
})

View File

@ -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')