I managed to setup a few unit tests already, but struggle with testing a Modal.
The modal shows properly from the app itself.
When running the test I receive this error:
this.addPhotoModal.present is not a function
I created this mock similarly to how I test the NavController:
export class ModalMock {
public present(): any {
return new Promise(function (resolve: Function): void {
resolve();
});
}
}