UNPKG
stats
Version:
latest (1.0.0)
1.0.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
JavaScript statistics (LOC, SLOC, etc)
stats
/
test
/
test.functions.js
13 lines
(9 loc)
•
282 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * Module dependencies. */
var
stats =
require
(
'../'
) , common =
require
(
'./common'
);
var
stats = stats.
parse
(
fixture
(
'functions.js'
)); stats.should.have.
property
(
'statements'
,
10
); stats.should.have.
property
(
'assignments'
,
2
); stats.should.have.
property
(
'functions'
,
4
);