Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

frint-test-utils

5.7.2 • Public • Published

frint-test-utils

npm

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

  1. console (Object): The console object to take over.

Returns

Function: Call the returned function to undo the take over.

Keywords

install

npm i frint-test-utils

Downloadsweekly downloads

975

version

5.7.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability