fix test fail

This commit is contained in:
AllenFang
2019-04-27 16:52:03 +08:00
parent 6168bd7532
commit 6bc54ef3ec

View File

@@ -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);
});
});
});