React] I don't know what this error means

● Clicking on a photo in the Gallery Component Test Photos list requires that the current selected photo change, and the status of the selected photo must change through the HandleClick function

expect(received).toEqual(expected) // deep equality

Expected: StringContaining "cat.jpeg"
Received: ""

  91 |
  92 |     fireEvent.click(container.querySelectorAll('a')[1]);

// Click on the thumbnail image of the first index

> 93 |     expect(container.querySelector('#current-image').src).toEqual(
     |                                                           ^
  94 |       expect.stringContaining('cat.jpeg')
  95 |     ); 

// The current image becomes cat.jpeg

  96 |
  at Object.<anonymous> (src/__test__/Gallery.test.js:93:59)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.