mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:11:23 +00:00
test: remove redundant default rich-menu command smoke case
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import { createGridLayout, messageAction, createDefaultMenuConfig } from "./rich-menu.js";
|
import { createGridLayout, messageAction } from "./rich-menu.js";
|
||||||
|
|
||||||
describe("createGridLayout", () => {
|
describe("createGridLayout", () => {
|
||||||
it("creates a 2x3 grid layout for tall menu", () => {
|
it("creates a 2x3 grid layout for tall menu", () => {
|
||||||
@@ -64,14 +64,3 @@ describe("createGridLayout", () => {
|
|||||||
expect((areas[5].action as { text: string }).text).toBe("/contact");
|
expect((areas[5].action as { text: string }).text).toBe("/contact");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("createDefaultMenuConfig", () => {
|
|
||||||
it("has expected default commands", () => {
|
|
||||||
const config = createDefaultMenuConfig();
|
|
||||||
|
|
||||||
const commands = config.areas.map((a) => (a.action as { text: string }).text);
|
|
||||||
expect(commands).toContain("/help");
|
|
||||||
expect(commands).toContain("/status");
|
|
||||||
expect(commands).toContain("/settings");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user