15 lines
430 B
JavaScript
15 lines
430 B
JavaScript
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)
|
|
})
|
|
})
|