UNPKG
jscrs
Version:
latest (0.2.6)
0.2.6
0.2.5
0.2.4
comment-rate-statistics
github.com/phillyx/jscrs/
phillyx/jscrs
jscrs
/
test
/
analysis.test.ts
10 lines
(7 loc)
•
254 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
analysis
from
"../src/analysis"
it
(
'test comment rate'
,
async
() => {
let
o =
new
analysis
();
let
rateReport =
await
o.
statisticCommentRate
()
console
.
table
([...rateReport.
values
()])
expect
(rateReport.
size
>
0
).
toBe
(
true
) })