Skip to:
new test(), xtest(), ftest() alias for more natuarl testing
test(), xtest(), ftest()
test( "Can have a separate beforeEach for this suite", function(){ expect( request.calc ).toBeComponent(); } ); xtest( "can add incorrectly and fail (Skipped)", function(){ var r = calc.add( 2, 2 ); expect( r ).toBe( 5 ); } ); test( "cannot divide by zero", function(){ expect( function(){ request.calc.divide( 4, 0 ); } ).toThrow( regex = "zero" ); } );
new
test(), xtest(), ftest()
alias for more natuarl testingtest( "Can have a separate beforeEach for this suite", function(){ expect( request.calc ).toBeComponent(); } ); xtest( "can add incorrectly and fail (Skipped)", function(){ var r = calc.add( 2, 2 ); expect( r ).toBe( 5 ); } ); test( "cannot divide by zero", function(){ expect( function(){ request.calc.divide( 4, 0 ); } ).toThrow( regex = "zero" ); } );