Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>
beforeEach(() => {
props = {
history: {
- push: jest.fn(),
+ replace: jest.fn(),
},
classes: {},
};
wrapper.find(Button).simulate('click');
// then
- expect(props.history.push).toHaveBeenCalledWith('/');
+ expect(props.history.replace).toHaveBeenCalledWith('/');
});
});
size="small"
variant="contained"
onClick={() => {
- history.push(window.location.pathname);
+ history.replace(window.location.pathname);
}}
className={classNames(classes.buttonRight, classes.button)}>
<ReRunProcessIcon />