Closure Library API Documentation
Go to class or file:
assertthat.js
No description.
Useful links
Source Code
Git
File Location
/goog/labs/testing/assertthat.js
Classes
goog.labs.testing.MatcherError
Error thrown when a Matcher fails to match the input value.
Public
Protected
Private
Global Functions
goog.labs.testing.
assertThat
(
actual
,
matcher
,
opt_reason
)
Asserts that the actual value evaluated by the matcher is true.
Arguments:
actual
:
*
The object to assert by the matcher.
matcher
:
!
goog.labs.testing.Matcher
A matcher to verify values.
opt_reason
:
string=
Description of what is asserted.
code »
Directory testing
File Reference