feat(api): add custom redirect back
This commit is contained in:
committed by
mrugesh
parent
3823ed19bc
commit
aa62fdbfe9
@@ -11,7 +11,9 @@ describe('<ShowSettings />', () => {
|
||||
const shallow = new ShallowRenderer();
|
||||
shallow.render(<ShowSettings {...loggedOutProps} />);
|
||||
expect(navigate).toHaveBeenCalledTimes(1);
|
||||
expect(navigate).toHaveBeenCalledWith(`${apiLocation}/signin`);
|
||||
expect(navigate).toHaveBeenCalledWith(
|
||||
`${apiLocation}/signin?returnTo=settings`
|
||||
);
|
||||
expect(true).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user