'Unit Test for Selector not working in Angular
I am trying to write the unit test cases for the below selector:
describe("selectRebookServicesResolved ", () => {
const response = {
initialSiteState,
State: DATA_STATE.INITIAL
}
it("should return null", () => {
const {
initialSiteState,
State
} = response;
const {
services
} = initialSiteState;
const result = fromServices.selectRebookServicesResolved.projector(services);
expect(result).toBeNull();
});
it("should return state", () => {
const {
services
} = initialSiteState;
const getServices = Object.assign({ ...services
}, {
state: DATA_STATE.RESOLVED
})
const result = fromServices.selectRebookServicesResolved.projector(getServices);
expect(result).toBe(getServices.data.services);
});
});
And when I run the code coverage it shows that statement is not covered I searched a lot of solutions and tried it's still the same

Pink color defines the code or statement is not covered I know lot of mistakes in the code but i am trying to to write the unit test cases
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
