UNPKG

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