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

should

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

should - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

History.md
1.1.1 / 2012-09-19
==================
* add .type for eql()s assert
1.1.0 / 2012-07-30

@@ -3,0 +8,0 @@ ==================

19

lib/should.js

@@ -1,2 +0,1 @@

/*!

@@ -33,8 +32,2 @@ * Should

/**
* Library version.
*/
exports.version = '1.0.0';
/**
* Assert _obj_ exists, with optional message.

@@ -47,3 +40,3 @@ *

exports.exist = function(obj, msg){
exports.exist = exports.exists = function(obj, msg){
if (null == obj) {

@@ -66,3 +59,3 @@ throw new AssertionError({

exports.not = {};
exports.not.exist = function(obj, msg){
exports.not.exist = exports.not.exists = function(obj, msg){
if (null != obj) {

@@ -120,6 +113,7 @@ throw new AssertionError({

* @param {Object} expected
* @param {String} type
* @api private
*/
assert: function(expr, msg, negatedMsg, expected){
assert: function(expr, msg, negatedMsg, expected, type){
var msg = this.negate ? negatedMsg : msg

@@ -136,2 +130,4 @@ , ok = this.negate ? !expr : expr

, stackStartFunction: this.assert
, negated: this.negate
, type: type
});

@@ -296,3 +292,4 @@ },

, function(){ return 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "") }
, val);
, val
, 'equal');
return this;

@@ -299,0 +296,0 @@ },

{ "name": "should"
, "description": "test framework agnostic BDD-style assertions"
, "version": "1.1.0"
, "version": "1.1.1"
, "author": "TJ Holowaychuk <tj@vision-media.ca>"

@@ -5,0 +5,0 @@ , "repository": { "type": "git", "url": "git://github.com/visionmedia/should.js.git" }

@@ -19,6 +19,2 @@

module.exports = {
'test .version': function(){
should.version.should.match(/^\d+\.\d+\.\d+$/);
},
'test double require': function(){

@@ -25,0 +21,0 @@ require('../').should.equal(should);

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