UNPKG
@matteo.collina/tspl
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
Count the number of assertions for node:test
github.com/mcollina/tspl
mcollina/tspl
@matteo.collina/tspl
/
demo.js
8 lines
(6 loc)
•
159 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
test
=
require
(
'node:test'
)
const
tspl
=
require
(
'.'
)
test
(
'tspl'
,
async
(t) => {
const
{ strictEqual } =
tspl
(t, {
plan
:
2
})
strictEqual
(
1
,
1
) })