apply(matcher, opt_message)code »
Asserts that the given matcher accepts the value wrapped by this
instance. If the wrapped value is a promise, this function will defer
applying the assertion until the value has been resolved. Otherwise, it
will be applied immediately.
Parameters
- matcher
goog.labs.testing.Matcher The matcher to apply
- opt_message
string= A message to include if the matcher does not
accept the value wrapped by this assertion.