⚠Cette page est actuellement en cours de traduction française. Vous pouvez repasser plus tard ou participer à la traduction de celle-ci dès maintenant !
Assert `Wrapper` `vm` has `prop` matching `value`.
Returns true
if Wrapper
vm
has prop
matching value
.
Note: the Wrapper must contain a Vue instance.
-
Arguments:
{string} prop
{any} value
-
Returns:
{boolean}
-
Example:
import { mount } from 'vue-test-utils'
import { expect } from 'chai'
import Foo from './Foo.vue'
const wrapper = mount(Foo)
expect(wrapper.hasProp('bar', 10)).toBe(true)