This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,27 +15,27 @@ function apply() {
15
15
var originalIt = global . it ;
16
16
var originalFit = global . fit ;
17
17
18
- global . it = function zoneResettingIt ( description , specFn ) {
18
+ global . it = function zoneResettingIt ( description , specFn , timeOut ) {
19
19
if ( specFn . length ) {
20
20
originalIt ( description , function zoneResettingSpecFn ( originalDone ) {
21
21
specFn ( function zoneResettingDone ( ) {
22
22
jasmineZone . run ( originalDone ) ;
23
23
} ) ;
24
- } ) ;
24
+ } , timeOut ) ;
25
25
} else {
26
- originalIt ( description , specFn ) ;
26
+ originalIt ( description , specFn , timeOut ) ;
27
27
}
28
28
} ;
29
29
30
- global . fit = function zoneResettingFit ( description , specFn ) {
30
+ global . fit = function zoneResettingFit ( description , specFn , timeOut ) {
31
31
if ( specFn . length ) {
32
32
originalFit ( description , function zoneResettingSpecFn ( originalDone ) {
33
33
specFn ( function zoneResettingDone ( ) {
34
34
jasmineZone . run ( originalDone ) ;
35
35
} ) ;
36
- } ) ;
36
+ } , timeOut ) ;
37
37
} else {
38
- originalFit ( description , specFn ) ;
38
+ originalFit ( description , specFn , timeOut ) ;
39
39
}
40
40
} ;
41
41
You can’t perform that action at this time.
0 commit comments