1sink('first pass', function (test, ok, before, after) {
2
3 before(function () {
4 console.log('BEFORE');
5 });
6
7 after(function () {
8 console.log('AFTER');
9 });
10
11 test('should pass a test thing or two', 2, function () {
12 ok(true, 'first thing');
13 ok(true, 'second thing');
14 });
15
16 test('should pass even another set of tests a test', 3, function () {
17 ok(1, 'third thing');
18 ok(1, 'fourth thing');
19 ok(1, 'fifth thing');
20 });
21
22});
23
24sink('secondary set', function (t, k, b, a) {
25
26 b(function () {
27 console.log('secondary before');
28 });
29
30 a(function () {
31 console.log('secondary after');
32 });
33
34 t('many talented people cannot count to three', 3, function () {
35 k(1, 'one');
36 k(2, 'two');
37 k(3, 'three');
38 });
39
40});
41
42start();