Socket
Socket
Sign inDemoInstall

mocha

Package Overview
Dependencies
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha - npm Package Compare versions

Comparing version 0.0.1-alpha6 to 0.0.1

6

History.md
0.0.1 / 2011-11-22
==================
* Added `--timeout` second shorthand support, ex `--timeout 3s`.
* Fixed "test end" event for uncaughtExceptions. Closes #61
0.0.1-alpha6 / 2011-11-19

@@ -3,0 +9,0 @@ ==================

2

lib/mocha.js

@@ -12,3 +12,3 @@

exports.version = '0.0.1-alpha6';
exports.version = '0.0.1';

@@ -15,0 +15,0 @@ exports.interfaces = require('./interfaces');

@@ -384,2 +384,3 @@

self.fail(self.test, err);
self.emit('test end', self.test);
self.emit('end');

@@ -386,0 +387,0 @@ });

@@ -67,5 +67,5 @@

/**
* Set timeout `ms`.
* Set timeout `ms` or short-hand such as "2s".
*
* @param {Number} ms
* @param {Number|String} ms
* @return {Suite} for chaining

@@ -76,3 +76,4 @@ * @api private

Suite.prototype.timeout = function(ms){
this._timeout = ms;
if (String(ms).match(/s$/)) ms = parseFloat(ms) * 1000;
this._timeout = parseInt(ms, 10);
return this;

@@ -79,0 +80,0 @@ };

{
"name": "mocha"
, "version": "0.0.1-alpha6"
, "version": "0.0.1"
, "description": "Test framework inspired by JSpec, Expresso, & Qunit"

@@ -5,0 +5,0 @@ , "keywords": ["test", "bdd", "tdd", "tap"]

Sorry, the diff of this file is not supported yet

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