Test utilities for Frint
$ npm install --save-dev frint-test-utils
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.
resetDOM()
Resets the DOM using jsdom
.
void
.
takeOverConsole(console)
Takes over console
for hiding deprecated warnings.
console
(Object
): The console object to take over.Function
: Call the returned function to undo the take over.