Neoclassical Programming Multitude
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

chai-have-xpath

1.5.0 • Public • Published

chai-have-xpath

expect(element).to.have.xpath('//blink')

Installation

> npm install --save-dev chai-have-xpath

Development

> npm install
> npm run watch

Usage

var chai = require('chai');
var React = require('react');
var TestUtils = require('react-addons-test-utils');
var chaiHaveXpath = require('chai-have-xpath');
var expect = chai.expect;
chai.use(chaiHaveXpath);
 
var component = TestUtils.renderIntoDocument(<h1>hi there o/</h1>);
expect(component).to.have.xpath('//h1[contains(., "hi there o/")]');

MIT © Rolf Erik Lekang

Keywords

install

npm i chai-have-xpath

Downloadsweekly downloads

1

version

1.5.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability