Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

referee

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

referee

Assertions for any JavaScript test framework and environment

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84
decreased by-80.24%
Maintainers
3
Weekly downloads
 
Created
Source

referee

Build status

referee is in your unit tests, deciding who passes and who fails.

It is a test-framework agnostic assertion and expectation library. Some highlights:

  • Rich library of assertions
  • Symmetric assert/refute (refute is referee's "assert.not*")
  • Evented: Emits success and failure events
  • Failing assertions throw exceptions by default, but can be configured to not
  • API to add custom assertions that provides quite a bit of plumbing for free

Full documentation: docs.busterjs.org/en/latest/modules/referee.

referee works in browsers (including old and rowdy ones, like IE6) and Node. It will define itself as an AMD module if you want it to (i.e. if there's a define function available).

Developers - Running tests

Node

  1. npm install - installs dev dependencies
  2. npm test - runs node tests

Browsers

  1. npm install - installs dev dependencies
  2. npm start - starts buster server
  3. open url localhost:1111/capture in the browser(s) you want to test with
  4. npm run-script test-browser - runs browser tests

FAQs

Package last updated on 16 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc