I'm currently working on a test (jtest) for an angular component, but it keeps failing due to this particular error. Any thoughts on how to resolve this? :)
it("should require valid email", () => {
spectator.component.email.setValue({ email: "invalidemail" });
expect(spectator.component.email).toEqual(false);
});
In my .ts file:
get email(): AbstractControl | null {
return this.form.get("email");
}
The error message I am encountering is as follows:
I attempted using
spectator.component.email("invalidemail");