frint-test-utils
v5.7.2
Published
Test utilities for Frint
Downloads
46
Keywords
Readme
frint-test-utils
Test utilities for Frint
Guide
Installation
$ npm install --save-dev frint-test-utils
Usage
With mocha:
$ mocha --require frint-test-utils/register './test/**/spec.js'
Sets resetDOM
globally in your environment, and takes over the console
for hiding deprecated warnings.
API
resetDOM
resetDOM()
Resets the DOM using jsdom
.
Returns
void
.
takeOverConsole
takeOverConsole(console)
Takes over console
for hiding deprecated warnings.
Arguments
console
(Object
): The console object to take over.
Returns
Function
: Call the returned function to undo the take over.