UNPKG
hydro-jack
Version:
latest (0.0.1)
0.0.1
Jack.js integration for hydro
github.com/hydrojs/hydro-jack
hydrojs/hydro-jack
hydro-jack
/
test
/
test.js
15 lines
(11 loc)
•
225 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var obj = { foo:
function
()
{} }; test(
'global'
,
function
()
{
assert
(jack); }); test(
'stub'
,
function
()
{ jack.stub(obj,
'foo'
);
assert
(obj.foo.double); }); test(
'unstub'
,
function
()
{
assert
(!obj.foo.double); });