showing results for - "get value in maps loop using enzym"
Chloe
27 May 2019
1describe('<CatsTable />', () => {
2  const wrapper = mount(
3    <CatsTable cats={cats} />
4  );
5
6  it('renders child correctly', () => {
7      expect(wrapper.find('tbody').children()).to.have.length(cats.length);
8      expect(wrapper.find('tbody').children().find('tr')).to.have.length(cats.length);
9
10  });
11