is(selector)

Returns true if wrapper node matches selector. Use any valid avoriaz selector.

Arguments

selector (String|Component): a CSS selector ('#id', '.class-name', 'tag') or a Vue component. See selectors.

Returns

(Boolean): returns true if wrapper node matches selector.

Example

import { mount } from 'avoriaz';
import Foo from './Foo.vue';

const wrapper = mount(Foo);
expect(wrapper.is('div')).to.equal(true);

results matching ""

    No results matching ""