export interface UserDetails {
name: 'string',
id: 'string',
address: {
area: 'string',
city: 'string',
}}
export class UserComponent {
Private GetData() {
let userDetail: UserDetails = {
name: 'user name'
}
userDetail.address.city = 'city Name'; //(city name will dynamically add for example added manually)
}
}
What is the method to access the local variable let userDetail in the .spec file for unit testing?