mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
9 lines
304 B
TypeScript
9 lines
304 B
TypeScript
import { shallow } from 'enzyme';
|
|
import * as React from 'react';
|
|
import { ReactifyNewlines } from './ReactifyNewlines';
|
|
|
|
it('renders a correct number of divs per newlines', () => {
|
|
const view = shallow(<ReactifyNewlines>{`1\n2\n3`}</ReactifyNewlines>);
|
|
|
|
expect(view.find('div').length).toBe(3);
|
|
});
|