Unit testing - Getting issue with Alert Controller in Ionic Framework
问题 I am trying to write a testcase for a method which has been called or not. Inside that method, I am calling an alert confirmation box. I am getting an error like Failed: this.alertCtrl.create is not a function Component.ts submitTicket(comments) { if (comments.length > 0) { const prompt = this.alertCtrl.create({ title: "<span> Improve Solution </span>", message: "<span>" + 'Are you sure you want <br>' + "</span>" + "<span>" + 'to submit this improvement' + "</span>", enableBackdropDismiss: