Anuglar 9 unit testing for service for post request?
问题 How can i write test case for service in my HomeComponent.spec.ts file. And for proceed button postRequest method called from the home.service.ts file. i have tried out but it's not working. kindly help me out. home.service.ts import { Injectable } from '@angular/core'; import { API_ACTIONS } from 'src/app/global/constant/common-constant'; import { CommonService } from 'src/app/global/services/common.service'; import { environment } from 'src/environments/environment'; @Injectable() export