Test("Add a comment?", Test.EXPECT( 1 ), function(_global, settings) {
comment( "Hello World!" );
// The test will fail because it is EXPECTing 1 result but
// comment( ) doesn't contribute towards results.
});
Notes
Comments do not count towards result totals when processed by Test.EXPECT( ) or Test.START( ) where numResults is specified.
similarTo( ) — A deep similarity checking assertion...
notSimilarTo( ) — A deep dissimilarity spotting assertion...
Test Signals — Signals are used to prematurely terminate Unit Tests...
REQUIRE( ) — Check whether a test or group of tests have passed. If the requirement fails, a RequireSignal will be sent which terminates the current test and marks it as failed.
ABORT( ) — Aborts the current test, marking it as failed in the process...
FINISH( ) — Terminates the test as if it had finished normally...