mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Remove console.log coverage of frontend set to 86%
This commit is contained in:
parent
b54b96feca
commit
4afd3ffe0a
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -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 }}
|
||||
|
||||
##############################################################################
|
||||
|
||||
@ -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')
|
||||
})
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user