Can anyone suggest unit test case for Jasmine to resolve this code coverage issue?
You need to create a describe block as below:
it('should create with necessary variables', () => {
expect(component).toBeTruthy();
component.Items[0].getInfo();
expect(component.isIndian).toBeTruthy();
// and so on....
});
You are setting this.isIndian as false at line 19 and then true at line 21. Please correct it accordingly.
In case you want to explore best practices, you can take a look at collection of articles in this article.