UNPKG
hugs
Version:
latest (2.3.0)
2.3.0
2.2.0
2.1.0
2.0.0
1.0.2
1.0.1
0.0.1
Hugs - a wrapper for test frameworks
github.com/lawrencec/hugs
lawrencec/hugs
hugs
/
test
/
functional
/
tests
/
spy.js
18 lines
(14 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'
;
module
.
exports
=
function
(
test
) {
var
assert =
require
(
'assert'
);
var
spy = test.
spy
;
return
function
(
done
) {
var
oUT = {
method
:
function
(
) {} };
spy
(oUT,
'method'
); oUT.
method
(); assert.
callCount
(oUT.
method
,
1
);
done
(); }; };