setProps(data)
Sets Vue instance props and forces update. Can only be called on a Vue component wrapper
Arguments
props (Object
): Props properties and corresponding value to set
Example
import { mount } from 'avoriaz';
import Foo from './Foo.vue';
const wrapper = mount(Foo);
wrapper.setProps({foo: 'bar'});
expect(wrapper.propsData().foo).to.equal('bar');