reinitialize lootalot_front to add unit testing

This commit is contained in:
2019-10-10 10:14:02 +02:00
parent 70eed30bee
commit 77728cfdc4
9 changed files with 157 additions and 56 deletions

View File

@@ -0,0 +1,14 @@
import { expect } from 'chai'
import { shallowMount } from '@vue/test-utils'
import Wealth from '@/components/Wealth.vue'
describe('Wealth.vue', () => {
it('renders wealth when passed', () => {
const wealth = [1, 2, 3, 4]
const wrapper = shallowMount(Wealth, {
propsData: { wealth }
})
var divs = wrapper.findAll('div')
expect(wrapper.text()).to.include(wealth)
})
})