From 5fac4540a1bf65d577c89af44332c4d74b416999 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sun, 28 Oct 2018 16:59:44 +0800 Subject: [PATCH] patch test for #583 --- packages/react-bootstrap-table2-editor/test/context.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-bootstrap-table2-editor/test/context.test.js b/packages/react-bootstrap-table2-editor/test/context.test.js index 03cfd74..57b56bf 100644 --- a/packages/react-bootstrap-table2-editor/test/context.test.js +++ b/packages/react-bootstrap-table2-editor/test/context.test.js @@ -235,7 +235,8 @@ describe('CellEditContext', () => { it('should call cellEdit.beforeSaveCell correctly', () => { expect(beforeSaveCell).toHaveBeenCalledTimes(1); - expect(beforeSaveCell).toHaveBeenCalledWith(oldValue, newValue, row, column); + expect(beforeSaveCell) + .toHaveBeenCalledWith(oldValue, newValue, row, column, expect.anything()); }); });