UNPKG

326 BJavaScriptView Raw
1var test = require('../');
2
3test('one', function (t) {
4 t.plan(2);
5 t.ok(true);
6 setTimeout(function () {
7 t.equal(1+3, 4);
8 }, 100);
9});
10
11test('two', function (t) {
12 t.plan(3);
13 t.equal(5, 2+3);
14 setTimeout(function () {
15 t.equal('a'.charCodeAt(0), 97);
16 t.ok(true);
17 }, 50);
18});