-
Notifications
You must be signed in to change notification settings - Fork 10
home
Андрей Кунцевич 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/falseexample
test.group('first group',function(){
...
test.group('second group', function(){
...
});
...
});
test.group('first group').group('second group',function(){ ... });