jsunit.js


file jsunit.js

Class Summary
Exception that is thrown for failed unit tests

Function Summary
assert(expr, msg)
Check if condition is true and throw exception if it is not

Function Details

function assert

assert(expr, msg)
Check if condition is true and throw exception if it is not
Parameters:
expr - expression to check
msg - diagnostic message that is included into exception
Throws:
jgrouse.jsunit.AssertionException is thrown when assertion fails
Defined in jsunit.js