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 Versions

1
12

1.2.1

Diff

Changelog

Source

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]
tjholowaychuk
published 1.2.0 •

Changelog

Source

1.2.0 / 2012-09-21

  • Added #approximately(value, delta, description) for doing assertions on results of operations with numbers. [titarenko]
tjholowaychuk
published 1.1.1 •

Changelog

Source

1.1.1 / 2012-09-19

  • add .type for eql()s assert
published 1.1.0 •

Changelog

Source

1.1.0 / 2012-07-30

  • add enclosing of failure message functions. Closes #81
  • add mocha .actual / .expected string support for all assertion values
published 1.0.0 •

Changelog

Source

11.0.0 / 2016-08-10

  • Extracted parts from code for traversing different data types in similar ways. This allows for easily extending the library to almost any collection class. Now should.js supports Set/Map/WeakSet/WeakMap everywhere.
  • .empty() now uses new type adaptors
  • Breaking change in .keys()/.key(): now only checks for passed keys (also uses type adaptors) - it can check for keys in Map/Set e.g
  • Added .value(key, value) to assert if key-value object has such value with this key
  • Added .size() to get size of collection; also works with type adaptors
  • .containEql uses type adaptors and can check something contained within a collection or sub-part of a key-value object
tjholowaychuk
published 0.6.3 •

Changelog

Source

0.6.3 / 2012-04-26

  • Added object inclusion support back
tjholowaychuk
published 0.6.2 •

Changelog

Source

0.6.2 / 2012-04-26

  • Added homepage to package.json
  • Fixed .equal() with dates. Closes #63
tjholowaychuk
published 0.6.1 •

Changelog

Source

0.6.1 / 2012-04-10

  • package: add "repository" section [TooTallNate]
  • use valueOf() to get the reference the object [TooTallNate]
tjholowaychuk
published 0.6.0 •

Changelog

Source

0.6.0 / 2012-03-01

  • Added err.actual and err.expected for .{eql,equal}()
  • Added 'return this;' to 'get json' and 'get html' in order to provide chaining for should.be.json and should.be.html
tjholowaychuk
published 0.5.1 •

Changelog

Source

0.5.1 / 2012-01-13

  • Added better .json
  • Added better .html
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