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('/');
});
});