mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 20:44:47 +00:00
test: guard daemon install integration mock call
This commit is contained in:
@@ -158,7 +158,7 @@ describe("runDaemonInstall integration", () => {
|
||||
const persistedToken = gateway.auth?.token;
|
||||
expect(persistedToken).toEqual(expect.stringMatching(/^[0-9a-f]{48}$/));
|
||||
|
||||
const installEnv = serviceMock.install.mock.calls[0]?.[0]?.environment;
|
||||
const installEnv = serviceMock.install.mock.calls.at(0)?.[0]?.environment;
|
||||
expect(installEnv?.OPENCLAW_GATEWAY_TOKEN).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user