Socket
Book a DemoInstallSign in
Socket

test-result

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-result

A simple module to mark the result of your tests

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

test-result

A simple module to mark the result of your tests

Build Status Dependency Status NPM version

Installation

npm install test-result

Usage

var result = require('test-result');

// if tests passed
result.pass('the best tests');
// if tests failed
result.fail('the worst tests');

On the server

It will log a message for test pass or fail. It will also process.exit(1) if the tests failed.

On the client

It will log a message for test pass or fail if the browser has console support. It will also count the number of completed, passed and failed tests in three counters, initialized as:

window.TESTS_COMPLETE = 0;
window.TESTS_PASSED = 0;
window.TESTS_FAILED = 0;

License

MIT

FAQs

Package last updated on 11 Feb 2015

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