(text: string)
| 127 | describe("Slack Command Parsing", () => { |
| 128 | // Parse command function mirrors the logic in commands.ts |
| 129 | function parseSubcommand(text: string): string { |
| 130 | return text.trim().toLowerCase().split(/\s+/)[0] || 'help'; |
| 131 | } |
| 132 | |
| 133 | it("should parse 'status' command", () => { |
| 134 | expect(parseSubcommand("status")).toBe("status"); |
no test coverage detected