UNPKG
nodeunit
Version:
latest (0.11.3)
0.11.3
0.11.2
0.11.1
0.11.0
0.10.2
0.10.1
0.10.0
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.1
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Easy unit testing for node.js and the browser.
github.com/caolan/nodeunit
caolan/nodeunit
nodeunit
/
examples
/
browser
/
suite1.js
13 lines
(12 loc)
•
319 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
this
.
suite1
= {
'test one'
:
function
(
test
) { test.
ok
(
true
,
'everythings ok'
);
setTimeout
(
function
(
) { test.
done
(); },
10
); },
'apples and oranges'
:
function
(
test
) { test.
equal
(
'apples'
,
'oranges'
,
'comparing apples and oranges'
); test.
done
(); } };