mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 03:47:28 +00:00
test(gateway): align auto-enable channel assertion
This commit is contained in:
@@ -442,12 +442,11 @@ describe("gateway server misc", () => {
|
||||
await autoServer.close();
|
||||
|
||||
const updated = JSON.parse(await fs.readFile(configPath, "utf-8")) as Record<string, unknown>;
|
||||
const plugins = updated.plugins as Record<string, unknown> | undefined;
|
||||
const entries = plugins?.entries as Record<string, unknown> | undefined;
|
||||
const discord = entries?.discord as Record<string, unknown> | undefined;
|
||||
expect(discord?.enabled).toBe(true);
|
||||
expect((updated.channels as Record<string, unknown> | undefined)?.discord).toMatchObject({
|
||||
const channels = updated.channels as Record<string, unknown> | undefined;
|
||||
const discord = channels?.discord as Record<string, unknown> | undefined;
|
||||
expect(discord).toMatchObject({
|
||||
token: "token-123",
|
||||
enabled: true,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user