need test default props without passing any props
test('required props', () => {
const wrapper = mount(Component)
expect(wrapper.props().backgroundColor).toBeTruthy()
expect(wrapper.props().step).toBeTruthy()
expect(wrapper.props().assignedTo).toBeTruthy()
expect(wrapper.props().meetWith).toBeTruthy()
expect(wrapper.props().statuses).toBeTruthy()
expect(wrapper.props().submittable).toBeTruthy()
expect(wrapper.props().editable).toBeTruthy()
expect(wrapper.props().description).toBeTruthy()
const instructions = wrapper.props().instructions
expect(instructions).toBeTruthy()
instructions.forEach(e => {
expect(e.title).toBeTruthy()
expect(e.type).toBeTruthy()
})
expect(wrapper.html()).toContain('<v-treeview-stub active="uuid-4"')
Comments
Post a Comment