()
| 3457 | }; |
| 3458 | |
| 3459 | function pushFailure() { |
| 3460 | if (!config.current) { |
| 3461 | throw new Error("pushFailure() assertion outside test context, in " + sourceFromStacktrace(2)); |
| 3462 | } |
| 3463 | |
| 3464 | // Gets current test obj |
| 3465 | var currentTest = config.current; |
| 3466 | |
| 3467 | return currentTest.pushFailure.apply(currentTest, arguments); |
| 3468 | } |
| 3469 | |
| 3470 | function saveGlobal() { |
| 3471 | config.pollution = []; |
no test coverage detected