What's New With 2.4.0
New toSatisfy matcher
toSatisfy matcherit( "can satisfy truth tests", function(){
expect( 1 ).toSatisfy( function( num ){ return arguments.num > 0; } );
expect( 0 ).notToSatisfy( function( num ){ return arguments.num > 0; } );
});New expectAll() collection expectation
expectAll() collection expectationit( "can test a collection", function(){
expectAll( [2,4,6,8] ).toSatisfy( function(x){ return 0 == x%2; });
expectAll( {a:2,b:4,c:6} ).toSatisfy( function(x){ return 0 == x%2; });
// and we can chain matchers
expectAll( [2,4,6,8] )
.toBeGTE( 2 )
.toBeLTE( 8 );
});New mintext Reporter
mintext ReporterNew JSON Matchers & Assertions
No more runRemote
runRemoteNew Fluent API for Testing Declarations
Release Notes
Bugs
New Features
Improvements
Last updated
Was this helpful?