Skip to content

Commit 6bc54ef

Browse files
committed
fix test fail
1 parent 6168bd7 commit 6bc54ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/react-bootstrap-table2/test/cell.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ describe('Cell', () => {
124124
onClick: sinon.stub()
125125
};
126126
});
127-
it('should calling custom onClick callback also', () => {
127+
128+
it('should call onStart correctly', () => {
128129
wrapper.find('td').simulate('click');
129130
expect(onStartCallBack.callCount).toBe(1);
130-
expect(column.events.onClick.callCount).toBe(1);
131131
});
132132
});
133133
});
@@ -164,10 +164,10 @@ describe('Cell', () => {
164164
onDoubleClick: sinon.stub()
165165
};
166166
});
167-
it('should calling custom onDoubleClick callback also', () => {
167+
168+
it('should call onStart correctly', () => {
168169
wrapper.find('td').simulate('doubleclick');
169170
expect(onStartCallBack.callCount).toBe(1);
170-
expect(column.events.onDoubleClick.callCount).toBe(1);
171171
});
172172
});
173173
});

0 commit comments

Comments
 (0)