diff --git a/test/inc-testcase.js b/test/inc-testcase.js index 0db496d..f87460d 100644 --- a/test/inc-testcase.js +++ b/test/inc-testcase.js @@ -21,13 +21,19 @@ for ( f in assert ) { return function() { - acount++; + incAssertCount(); a.apply( this, arguments ); }; } )( _assert_cur ); } +function incAssertCount() +{ + acount++; +}; + + /** * Defines and runs a test case * @@ -128,6 +134,7 @@ function prepareCaseContext() assertThrows: assert_wrapped.throws, assertDoesNotThrow: assert_wrapped.doesNotThrow, assertIfError: assert_wrapped.ifError, + incAssertCount: incAssertCount, }; }