Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 2dde717

Browse files
marclavalvicb
authored andcommitted
fix(jasmine patch): forward timeout
1 parent ee4262a commit 2dde717

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: lib/jasmine/patch.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ function apply() {
1515
var originalIt = global.it;
1616
var originalFit = global.fit;
1717

18-
global.it = function zoneResettingIt(description, specFn) {
18+
global.it = function zoneResettingIt(description, specFn, timeOut) {
1919
if (specFn.length) {
2020
originalIt(description, function zoneResettingSpecFn(originalDone) {
2121
specFn(function zoneResettingDone() {
2222
jasmineZone.run(originalDone);
2323
});
24-
});
24+
}, timeOut);
2525
} else {
26-
originalIt(description, specFn);
26+
originalIt(description, specFn, timeOut);
2727
}
2828
};
2929

30-
global.fit = function zoneResettingFit(description, specFn) {
30+
global.fit = function zoneResettingFit(description, specFn, timeOut) {
3131
if (specFn.length) {
3232
originalFit(description, function zoneResettingSpecFn(originalDone) {
3333
specFn(function zoneResettingDone() {
3434
jasmineZone.run(originalDone);
3535
});
36-
});
36+
}, timeOut);
3737
} else {
38-
originalFit(description, specFn);
38+
originalFit(description, specFn, timeOut);
3939
}
4040
};
4141

0 commit comments

Comments
 (0)