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:
Fusion
2026-05-04 14:53:08 -07:00
committed by gsxdsm
parent d3060ef7f4
commit 71ad03f3a0

View File

@@ -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({