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.2.0 to 1.2.1

7

History.md
1.2.1 / 2012-11-02
==================
* add .showDiff
* Make instanceOf and throwError be aliased like others [alFReD-NSH]
* Fix should[.not].exist not having stack trace #84 [alFReD-NSH]
1.2.0 / 2012-09-21

@@ -3,0 +10,0 @@ ==================

9

lib/should.js

@@ -43,3 +43,3 @@ /*!

message: msg || ('expected ' + i(obj) + ' to exist')
, stackStartFunction: should.exist
, stackStartFunction: exports.exist
});

@@ -62,3 +62,3 @@ }

message: msg || ('expected ' + i(obj) + ' to not exist')
, stackStartFunction: should.not.exist
, stackStartFunction: exports.not.exist
});

@@ -716,5 +716,2 @@ }

Assertion.prototype.instanceOf = Assertion.prototype.instanceof;
Assertion.prototype.throwError = Assertion.prototype.throw;
/**

@@ -728,2 +725,4 @@ * Aliases.

})
('instanceof', 'instanceOf')
('throw', 'throwError')
('length', 'lengthOf')

@@ -730,0 +729,0 @@ ('keys', 'key')

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

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

@@ -15,2 +15,8 @@

should.equal(msg, err.message);
should(err.stack, 'Expected error to have an stack trace');
var stackTraceFirstLine = err.stack.split('\n')[1];
var message = 'Expected error to have a proper stack trace showing the file names';
should(stackTraceFirstLine, message);
stackTraceFirstLine.should.match(/at\s*[\S]+/, message);
}

@@ -17,0 +23,0 @@ }

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