mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 18:24:47 +00:00
test: check minted gateway token format
This commit is contained in:
@@ -156,8 +156,7 @@ describe("runDaemonInstall integration", () => {
|
||||
const updated = await readJson(configPath);
|
||||
const gateway = (updated.gateway ?? {}) as { auth?: { token?: string } };
|
||||
const persistedToken = gateway.auth?.token;
|
||||
expect(typeof persistedToken).toBe("string");
|
||||
expect((persistedToken ?? "").length).toBeGreaterThan(0);
|
||||
expect(persistedToken).toEqual(expect.stringMatching(/^[0-9a-f]{48}$/));
|
||||
|
||||
const installEnv = serviceMock.install.mock.calls[0]?.[0]?.environment;
|
||||
expect(installEnv?.OPENCLAW_GATEWAY_TOKEN).toBeUndefined();
|
||||
|
||||
Reference in New Issue
Block a user