mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-04-04 20:04:27 +00:00
fix test fail
This commit is contained in:
@@ -124,10 +124,10 @@ describe('Cell', () => {
|
||||
onClick: sinon.stub()
|
||||
};
|
||||
});
|
||||
it('should calling custom onClick callback also', () => {
|
||||
|
||||
it('should call onStart correctly', () => {
|
||||
wrapper.find('td').simulate('click');
|
||||
expect(onStartCallBack.callCount).toBe(1);
|
||||
expect(column.events.onClick.callCount).toBe(1);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -164,10 +164,10 @@ describe('Cell', () => {
|
||||
onDoubleClick: sinon.stub()
|
||||
};
|
||||
});
|
||||
it('should calling custom onDoubleClick callback also', () => {
|
||||
|
||||
it('should call onStart correctly', () => {
|
||||
wrapper.find('td').simulate('doubleclick');
|
||||
expect(onStartCallBack.callCount).toBe(1);
|
||||
expect(column.events.onDoubleClick.callCount).toBe(1);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user