unexpected-jsdom

5.1.0 • Public • Published

unexpected-jsdom

Add jsdom support to unexpected. It adds a custom type that recognizes JSDOM elements and documents and syntax highlights it in the terminal using prism. Equivalence is determined by comparing outerHTML.

To use it:

var jsdom = require('jsdom'),
    expect = require('unexpected').clone().installPlugin(require('unexpected-jsdom'));

expect(jsdom.jsdom('<div>foo</div>'), 'to equal', jsdom.jsdom('<div>bar</div>'));

Readme

Keywords

none

Package Sidebar

Install

npm i unexpected-jsdom

Weekly Downloads

2

Version

5.1.0

License

none

Last publish

Collaborators

  • papandreou