dom-stub
v1.0.1
Published
A minimal dom node stub for testing purposes
Downloads
15
Maintainers
Readme
dom-stub
A minimal dom node stub for testing purposes.
Installation
$ npm install dom-stub
Usage
const domStub = require('dom-stub')
const assert = require('assert')
const isDom = require('is-dom')
global.window = {}
assert.ok(isDom(domStub()), 'is dom node')
// => ok