test(FN-3314): align persistent auth route assertion
- Update the remote access auth login-url test to assert global settings persistence - Replace the outdated store.updateSettings expectation with store.updateGlobalSettings - Keep persistent token strategy verification coverage intact
This commit is contained in:
@@ -3836,7 +3836,7 @@ describe("remote access auth login-url endpoints", () => {
|
||||
expect(persistentLoginUrl.pathname).toBe("/remote-login");
|
||||
expect(persistentLoginUrl.searchParams.get("rt")).toMatch(/^frt_[A-Za-z0-9_-]+$/);
|
||||
expect(res.body.expiresAt).toBeUndefined();
|
||||
expect(store.updateSettings).toHaveBeenCalledWith(expect.objectContaining({
|
||||
expect(store.updateGlobalSettings).toHaveBeenCalledWith(expect.objectContaining({
|
||||
remoteAccess: expect.objectContaining({
|
||||
tokenStrategy: expect.objectContaining({
|
||||
persistent: expect.objectContaining({
|
||||
|
||||
Reference in New Issue
Block a user