Answers for "get value in maps loop using enzym"

0

get value in maps loop using enzym

describe('<CatsTable />', () => {
  const wrapper = mount(
    <CatsTable cats={cats} />
  );

  it('renders child correctly', () => {
      expect(wrapper.find('tbody').children()).to.have.length(cats.length);
      expect(wrapper.find('tbody').children().find('tr')).to.have.length(cats.length);

  });
Posted by: Guest on November-13-2020

Code answers related to "get value in maps loop using enzym"

Code answers related to "Javascript"

Browse Popular Code Answers by Language