mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
* add missing dependenies * tuning webpack loader for scss * implement noDataIndication * add story for noDataIndication prop * patch yarn.lock
25 lines
676 B
JavaScript
25 lines
676 B
JavaScript
import React from 'react';
|
|
import { shallow } from 'enzyme';
|
|
|
|
import RowSection from '../src/row-section';
|
|
|
|
describe('Row', () => {
|
|
const colSpan = 3;
|
|
let wrapper;
|
|
let content;
|
|
|
|
describe('simplest row-section', () => {
|
|
beforeEach(() => {
|
|
wrapper = shallow(<RowSection content={ content } colSpan={ colSpan } />);
|
|
});
|
|
|
|
it('should render successfully', () => {
|
|
expect(wrapper.length).toBe(1);
|
|
expect(wrapper.find('tr').length).toBe(1);
|
|
expect(wrapper.find('td').length).toBe(1);
|
|
expect(wrapper.find('td').prop('colSpan')).toEqual(colSpan);
|
|
expect(wrapper.find('.react-bs-table-no-data').length).toBe(1);
|
|
});
|
|
});
|
|
});
|