Fix failing test, console.errors

This commit is contained in:
Matt Rider 2019-06-20 11:57:52 -03:00
parent da30001ba8
commit 8a77fcff15
2 changed files with 7 additions and 1 deletions

View File

@ -1,10 +1,12 @@
import { mount, createLocalVue } from '@vue/test-utils'
import FilterMenu from './FilterMenu.vue'
import Styleguide from '@human-connection/styleguide'
import VTooltip from 'v-tooltip'
const localVue = createLocalVue()
localVue.use(Styleguide)
localVue.use(VTooltip)
describe('FilterMenu.vue', () => {
let wrapper

View File

@ -10,11 +10,15 @@ describe('VerifyCode ', () => {
let wrapper
let Wrapper
let mocks
let propsData
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
propsData = {
email: 'mail@example.org',
}
})
describe('mount', () => {
@ -24,6 +28,7 @@ describe('VerifyCode ', () => {
return mount(VerifyCode, {
mocks,
localVue,
propsData,
})
}
@ -35,7 +40,6 @@ describe('VerifyCode ', () => {
describe('after verification code given', () => {
beforeEach(() => {
wrapper = Wrapper()
wrapper.find('input#email').setValue('mail@example.org')
wrapper.find('input#code').setValue('123456')
wrapper.find('form').trigger('submit')
})