have-xpath
v2.0.0
Published
expect(element).to.have.xpath('//blink')
Downloads
15
Readme
have-xpath
haveXpath(element, '//blink')
Installation
> npm install --save-dev have-xpath
Development
> npm install
> npm run watch
Usage
var React = require('react');
var TestUtils = require('react-addons-test-utils');
var haveXpath = require('have-xpath');
var component = TestUtils.renderIntoDocument(<h1>hi there o/</h1>);
haveXpath(component, '//h1') // => true
MIT © Rolf Erik Lekang