fix: sync protocol outputs
This commit is contained in:
@@ -130,9 +130,7 @@ export const execApprovalsHandlers: GatewayRequestHandlers = {
|
||||
const currentSocketPath = snapshot.file.socket?.path?.trim();
|
||||
const currentToken = snapshot.file.socket?.token?.trim();
|
||||
const socketPath =
|
||||
normalized.socket?.path?.trim() ??
|
||||
currentSocketPath ??
|
||||
resolveExecApprovalsSocketPath();
|
||||
normalized.socket?.path?.trim() ?? currentSocketPath ?? resolveExecApprovalsSocketPath();
|
||||
const token = normalized.socket?.token?.trim() ?? currentToken ?? "";
|
||||
const next: ExecApprovalsFile = {
|
||||
...normalized,
|
||||
|
||||
@@ -9,9 +9,8 @@ const mocks = vi.hoisted(() => ({
|
||||
}));
|
||||
|
||||
vi.mock("../../config/config.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("../../config/config.js")>(
|
||||
"../../config/config.js",
|
||||
);
|
||||
const actual =
|
||||
await vi.importActual<typeof import("../../config/config.js")>("../../config/config.js");
|
||||
return {
|
||||
...actual,
|
||||
loadConfig: () => ({}),
|
||||
|
||||
Reference in New Issue
Block a user