public final class JSErrorSubject
extends <any>
import static com.google.javascript.jscomp.testing.JSErrorSubject.assertNode; ... assertError(error).hasType(TypeValidator.TYPE_MISMATCH);TODO(tbreisacher): Add assertions on the message text, line number, etc.
Constructor and Description |
---|
JSErrorSubject(FailureStrategy fs,
JSError error) |
Modifier and Type | Method and Description |
---|---|
static JSErrorSubject |
assertError(JSError error) |
void |
hasType(DiagnosticType type) |
public JSErrorSubject(FailureStrategy fs, JSError error)
public static JSErrorSubject assertError(JSError error)
public void hasType(DiagnosticType type)
Copyright © 2009–2023 Google. All rights reserved.