mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 21:20:04 +00:00
Add snapshot tests
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<SelectionCell /> render should render component correctly 1`] = `
|
||||
<td
|
||||
onClick={[Function]}
|
||||
>
|
||||
<input
|
||||
checked={true}
|
||||
className=""
|
||||
onChange={[Function]}
|
||||
type="checkbox"
|
||||
/>
|
||||
</td>
|
||||
`;
|
||||
@@ -0,0 +1,9 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<CheckBox /> render should render component correctly 1`] = `
|
||||
<input
|
||||
checked={true}
|
||||
onChange={[Function]}
|
||||
type="checkbox"
|
||||
/>
|
||||
`;
|
||||
@@ -170,7 +170,13 @@ describe('<SelectionCell />', () => {
|
||||
describe('when disabled prop give as true', () => {
|
||||
beforeEach(() => {
|
||||
wrapper = shallowWithContext(
|
||||
<SelectionCell rowKey={ 1 } mode={ mode } rowIndex={ rowIndex } selected={ selected } disabled />,
|
||||
<SelectionCell
|
||||
rowKey={ 1 }
|
||||
mode={ mode }
|
||||
rowIndex={ rowIndex }
|
||||
selected={ selected }
|
||||
disabled
|
||||
/>,
|
||||
{ bootstrap4: false }
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user