I am trying to test an angular application using Jasmine which I encountered a method having CustomEvent interface as an argument.
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
HttpClientModule,
RouterTestingModule,
FormsModule
],
declarations: [ MyComponent],
providers: [MyService,CustomEvent]
})
.compileComponents();
});
it('should return void if submitted without selecting user', () => {
console.log("promise" + fixture.componentInstance.submitForm());// submit form is a method from the MyComponent class
})
When I run this test case I am getting the below error message. Error: Can't resolve all parameters for CustomEvent: (?).
Also the same occurs for Event as well. Please let me know what to add inorder to resolve this