79604154

Date: 2025-05-02 21:48:42
Score: 0.5
Natty:
Report link

Thank you for your response Naren. I see what you mean by calling overrideSelector twice in the test since we are skipping the first value, which makes sense. I took what you posted and changed it to:

// Arrange
store.overrideSelector(selectBooks, [{ test: 1 }] as any);
store.refreshState();

// Act
component.getSomething();

const mockResult: any = [];
store.overrideSelector(selectBooks, mockResult);
store.refreshState();
flush();

After that it worked/passed great. Thanks again!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: John