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)
}
}
How access the local variable let userDetail to unit test .spec file.