- Fix for adding .inspect for JQuery object only in case when it is exist
- Fix for HTMLElement in DOM less environments
- Added jquery based broser extension
- Fix: .lengthOf()
- Split everything to smaller files
- Added huge extension to .match and .matchEach. Thanks @alsotang for initial code and idea.
- Added .containDeep and .containEql
- Separate build for browser and node.js
- Basic plugin system
- Breaking change: .Object now do not fail on arrays
- Breaking change: Additional messages now replaces generated and do not added
- Breaking change: .keys now check as is - no keys in args means no keys in object
- Deprecated: assert extension
- Deprecated: .include and .includeEql
- Now all assertions define only positive cases, should.js take care about negations and chains
- Move date formatting out of should.inspect
- Override .inspect for Date's to convert them to ISOString
- Add '#of' as getter for chaining.
- Exclude browser script for .npmignore.
- Fix wrong path in .npmignore.
- breaking change: #a now getter like #an. Was replaced with #type(str)
- breaking change: #empty does not check length for objects. Now it check if object do not have own properties.
- #properties check if object have some properties
- util.inspect now exposed as should.inspect
- assertions for NaN, Infinity, Array, Object, String, Boolean, Number, Error, Function
- #equal got alias #exactly
- fix doc for .keys. Closes #108.
- add #endWith()
- add .startWith (#119)
- fix should.be.instanceOf() failure on Date
- add .showDiff
- Make instanceOf and throwError be aliased like others [alFReD-NSH]
- Fix should[.not].exist not having stack trace #84 [alFReD-NSH]
- Added #approximately(value, delta, description) for doing assertions on results of operations with numbers. [titarenko]
- add .type for eql()s assert
- add enclosing of failure message functions. Closes #81
- add mocha .actual / .expected string support for all assertion values
- add
.throw(Constructor)
support [snakamura]
- Added object inclusion support back
- Added homepage to package.json
- Fixed .equal() with dates. Closes #63
- package: add "repository" section [TooTallNate]
- use valueOf() to get the reference the object [TooTallNate]
- Added
err.actual
anderr.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
- Added better
.json
- Added better
.html
- Added string matching to
.throw()
[serby] - Added regexp matching to
.throw()
[serby] - Added
.includeEql()
[RubenVerborgh] - Added
.should.be.html
- Added
.should.be.json
- Added optional description args to most matchers [Mike Swift]
- Fixed .header() for realzzz
- Fixed: chain .header() to retain negation
- Added
.should.throw()
- Added
.include()
support for strings - Added
.include()
support for arrays - Removed
keys()
.include
modifier support - Removed
.object()
- Removed
.string()
- Removed
.contain()
- Removed
.respondTo()
rubyism - expresso -> mocha
- Fixed tests for 0.5.x
- Fixed sys warning
- configurable
- Added assertion for inclusion of an object:
foo.should.include.object({ foo: 'bar' })
- Fixed .status(code). Closes #18
- Added
res.should.have.status(code)
method - Added
res.should.have.header(field, val)
method
- Added
should.exist(obj)
[aseemk] - Added
should.not.exist(obj)
[aseemk]
- Added
.ok
to assert truthfulness - Added
.arguments
- Fixed double required bug. [thanks dominictarr]
- Added
true
/false
assertions
- Added chaining support
- Initial release