in reactjs test cases we need to decide output of function to ensure we are displaying correct output on the component . here in this video we have written a test case in which we have mocked the function and made sure that we are showing currect data in the mponent.