Skip to content

RyanGough/domassert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A node package with some additional assert methods for testing the DOM

Uses xmldom and xpath.js

Install:

npm install domassert

Example:

require('domassert');
xml = '<group><item>apple</item><item>pear</item><item>orange</item></group>'
assert.hasTag(xml, "//item");
assert.hasTagWithContent(xml, "//item", "pear");

About

A node package with some additional asserts for testing the DOM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors