How To Set Text Content Of Html Input Element In Unit Test
I am running unit test for angular app, I want to set the text content of this input element via unit test.I am using jasmine
formData.nativeElement.value = 22;
formData.nativeElement.dispatchEvent(new Event('input'));
expect(formData.nativeElement.value).toBe(22);
Post a Comment for "How To Set Text Content Of Html Input Element In Unit Test"