Fix linting errors

This commit is contained in:
Pig Fang 2019-07-12 22:41:44 +08:00
parent 718c7a61a5
commit fe55b0be9d
2 changed files with 4 additions and 1 deletions

View File

@ -2,3 +2,4 @@ public/
vendor/
coverage/
plugins/
laradock/

View File

@ -25,7 +25,9 @@ test('login', async () => {
.mockResolvedValueOnce({ code: 1, data: { login_fails: 4 } })
.mockResolvedValueOnce({ code: 1, data: { login_fails: 4 } })
.mockResolvedValueOnce({ code: 1, data: { login_fails: 4 } })
.mockResolvedValueOnce({ code: 0, message: 'ok', data: { redirectTo: '' } })
.mockResolvedValueOnce({
code: 0, message: 'ok', data: { redirectTo: '' },
})
const wrapper = mount(Login, { stubs: { Captcha } })
const form = wrapper.find('form')
const warning = wrapper.find('.callout-warning')