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test harness for node and browsers
github.com/tape-testing/tape
tape-testing/tape
tape
/
test
/
subcount.js
17 lines
(13 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'
;
var
test =
require
(
'../'
);
test
(
'parent test'
,
function
(
t
) { t.
plan
(
2
); t.
test
(
'first child'
,
function
(
st
) { st.
plan
(
1
); st.
pass
(
'pass first child'
); }); t.
test
(
function
(
st
) { st.
plan
(
1
); st.
pass
(
'pass second child'
); }); });