Skip to content

All basic functional

Compare
Choose a tag to compare
@titulus titulus released this 04 Aug 15:16
· 170 commits to master since this release

realized next features:

tests:

  • test.it( value )
  • test.it( value1, value2 )
  • test.them( values )
  • test.type( value, type )
  • test.types( values [, type] )

groups - test.group( name, function(){ ... } )

Chain links

  • .comment( text )
  • .callback( funcIfpass, funcIffail, funcIferror)

Chain closers

  • .result()
  • .arguments()

Chaining

test.it(some)
     .comment('comment to test')
     .callback(function(){alert('test has been passed')})
     .arguments(); // -> [some]
test.group('group', function(){ ... })
     .comment('comment to group')
     .result(); // -> true/false

Nesting:

test.group('first group',function(){
  ...
  test.group('second group', function(){
    ...
  });
  ...
});
test.group('first group').group('second group',function(){ ... });

Some features:

  • test.typeof( entity )
  • test.trace()