src/utils/TestUtils.ts
Methods |
|
Static createSpyObj | ||||||||||||
createSpyObj(_baseName: string, methodNames: string[])
|
||||||||||||
Method that creates a mock object with multiple spies.
Parameters :
Returns :
literal type
a created object with the spy methods as properties. |
Static getWebMapServiceStub | ||||||||||||||||||||
getWebMapServiceStub(serviceModel: any, itemsToFetch?: any, postResult?: any, customServiceFunction?: any)
|
||||||||||||||||||||
Returns a new mock instance of the WebMapService.
Parameters :
Returns :
any
|
Static testEventWasCalled | ||||||||||||||||||||||||
testEventWasCalled(fixture: ComponentFixture<T>, emitter: EventEmitter<EventData>, name: string, selector: string, event?: any)
|
||||||||||||||||||||||||
Type parameters :
|
||||||||||||||||||||||||
Tests that the event emitter gets called when the source event of the given name is triggered,
Parameters :
Returns :
void
|
Static triggerHtmlEvent | ||||||||||||||||||||
triggerHtmlEvent(fixture: ComponentFixture<T>, name: string, selector: string, event?: any)
|
||||||||||||||||||||
Type parameters :
|
||||||||||||||||||||
Triggers the specified HTML event in the component specified by the selector
Parameters :
Returns :
void
|