UNPKG
coverify
Version:
latest (1.5.1)
1.5.1
1.5.0
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
0.0.0
code coverage browserify transform
github.com/substack/coverify
substack/coverify
coverify
/
test
/
fn-call.js
11 lines
(9 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
test =
require
(
'tape'
);
var
call =
Function
.
prototype
.
call
;
test
(
'Function.prototype.call'
,
function
(
t
) { t.
plan
(
1
);
var
res = call.
bind
(
Array
.
prototype
.
map
)([
1
,
2
,
3
],
function
(
x
) {
return
x *
100
; }); t.
deepEqual
(res, [
100
,
200
,
300
]); });