16627: Replaced push with replace for history
[arvados-workbench2.git] / src / components / refresh-button / refresh-button.test.tsx
index f6372e5c64adb98acc0c98998b61e3302c91f1ae..fe7b609d230b27808306f366943022a7c7df6f7e 100644 (file)
@@ -16,7 +16,7 @@ describe('<RefreshButton />', () => {
     beforeEach(() => {
         props = {
             history: {
-                push: jest.fn(),
+                replace: jest.fn(),
             },
             classes: {},
         };
@@ -38,6 +38,6 @@ describe('<RefreshButton />', () => {
         wrapper.find(Button).simulate('click');
 
         // then
-        expect(props.history.push).toHaveBeenCalledWith('/');
+        expect(props.history.replace).toHaveBeenCalledWith('/');
     });
 });