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.regexp.js
12 lines
(8 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * Module dependencies. */
var
stats =
require
(
'../'
) , common =
require
(
'./common'
);
var
stats = stats.
parse
(
'foo.text(/something/)'
); stats.should.have.
property
(
'statements'
,
1
); stats.should.have.
property
(
'regexpLiterals'
,
1
);