UNPKG
decojs
Version:
latest (0.9.1)
0.9.1
0.9.0
0.8.1
0.8.0
0.7.1
0.7.0
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
Scalable frontend architecture
github.com/decojs/DecoJS
decojs/DecoJS
decojs
/
Specs
/
Mocks
/
whenContextMock.js
22 lines
(15 loc)
•
299 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
define([], function(){
function
when
()
{
function
subWhen
()
{
return
when
(); } subWhen.destroyChildContexts = sinon.spy();
when
.context.push(subWhen);
return
subWhen; }
when
.context = [];
when
.reset = function(){
when
.context = []; }
return
when
; });