Skip to content

Commit df7e6ce

Browse files
committed
test(runtime): pin the Remove Manager forward carrying managerId null at the action door
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5okniknzVVR3KTSVr1
1 parent ab4b30a commit df7e6ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/runtime/src/platform-admin-action-gate.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('sys_user.remove_user_manager: the clear reaches the endpoint as `manag
179179
expect(res?.response?.status).toBe(200);
180180
expect(request).toHaveBeenCalledTimes(1);
181181
const [url, init] = forwardOf(request);
182-
expect(url).toBe('http://localhost/api/v1/auth/admin/set-user-manager');
182+
expect(new URL(url).pathname).toBe('/api/v1/auth/admin/set-user-manager');
183183
expect(String(init.method).toUpperCase()).toBe('POST');
184184
const body = JSON.parse(String(init.body));
185185
expect(body.userId).toBe('u_target');

0 commit comments

Comments
 (0)