Skip to content
Андрей Кунцевич edited this page Oct 11, 2019 · 17 revisions
  • tests - test.it(), test.them(), test.is(), test.are().
  • groups - test.group().
  • modifiers - .comment(), .addTime(), addTrace(), .callback(), .result(), .arguments(), .print(), .exclude(.x).
  • root - test.getRoot(), test.r().
  • features - test.typeof(), test.trace().

example

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

example

test.group('first group',function(){
  ...
  test.group('second group', function(){
    ...
  });
  ...
});
test.group('first group').group('second group',function(){ ... });
Clone this wiki locally