import * as React from 'react'; import { mount } from 'enzyme'; import List from '../List'; describe('', () => { it('sets the list type to ul when is a bullet list', () => { const list = mount(test); expect(list.find('ul').exists()).toBeTruthy(); }); it('sets the list type to ul when no type is provided', () => { const list = mount(test); expect(list.find('ul').exists()).toBeTruthy(); }); it('sets the list type to ol when is a number list', () => { const list = mount(test); expect(list.find('ol').exists()).toBeTruthy(); }); });