.match(regex)
for not supported cases.only
modifier for .keys
to check also size.enumerable(s)
Set
/Map
/WeakSet
/WeakMap
everywhere..empty()
now uses new type adaptors.keys()
/.key()
: now only checks for passed keys (also uses type adaptors) - it can check for keys in Map
/Set
e.g.value(key, value)
to assert if key-value object has such value
with this key
.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 objectshould-equal
to do not call .toString when checking circular usage.eql
es6 set, map and symbol (should-type
, should-format
, should-equal
)should-format
now looks more like chrome developer tools inpections.should
usage to non getter form.matchAny
, like .matchEach
but with some
semantics.throw()
check if given object is a function.throw(Constructor)
support [snakamura]err.actual
and err.expected
for .{eql,equal}().json
.html
.throw()
[serby].throw()
[serby].includeEql()
[RubenVerborgh].should.be.html
.should.be.json
.should.throw()
.include()
support for strings.include()
support for arrayskeys()
.include
modifier support.object()
.string()
.contain()
.respondTo()
rubyismfoo.should.include.object({ foo: 'bar' })
res.should.have.status(code)
methodres.should.have.header(field, val)
methodshould.exist(obj)
[aseemk]should.not.exist(obj)
[aseemk].ok
to assert truthfulness.arguments
true
/ false
assertions