test(captcha): fix a test case

This commit is contained in:
moyus 2019-02-22 15:38:55 +08:00
parent 8ed04e8cc1
commit d0368ae387
1 changed files with 3 additions and 3 deletions

View File

@ -119,11 +119,11 @@ describe('Captcha - Operation', () => {
})
const eventStub = sinon.stub(wrapper.vm, '$emit')
wrapper.find('.md-captcha-btn').trigger('click')
expect(eventStub.calledWith('send')).toEqual(true)
setTimeout(() => {
wrapper.find('.md-captcha-btn').trigger('click')
expect(eventStub.calledWith('send')).toEqual(true)
done()
}, 2000)
}, 2500)
})
it('not countdown', () => {