Package Exports
- dom-stub
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dom-stub) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dom-stub
A minimal dom node stub for testing purposes.
Installation
$ npm install dom-stubUsage
const domStub = require('dom-stub')
const assert = require('assert')
const isDom = require('is-dom')
global.window = {}
assert.ok(isDom(domStub()), 'is dom node')
// => ok