mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
Format code with prettier
This commit is contained in:
@@ -47,7 +47,8 @@ describe("parseAllowedTools", () => {
|
||||
});
|
||||
|
||||
test("handles multiple flags with allowedTools in middle", () => {
|
||||
const args = '--flag1 value1 --allowedTools "mcp__github__*" --flag2 value2';
|
||||
const args =
|
||||
'--flag1 value1 --allowedTools "mcp__github__*" --flag2 value2';
|
||||
expect(parseAllowedTools(args)).toEqual(["mcp__github__*"]);
|
||||
});
|
||||
|
||||
@@ -60,10 +61,11 @@ describe("parseAllowedTools", () => {
|
||||
});
|
||||
|
||||
test("handles tools with special characters", () => {
|
||||
const args = '--allowedTools "mcp__github__create_issue,mcp__github_comment__update"';
|
||||
const args =
|
||||
'--allowedTools "mcp__github__create_issue,mcp__github_comment__update"';
|
||||
expect(parseAllowedTools(args)).toEqual([
|
||||
"mcp__github__create_issue",
|
||||
"mcp__github_comment__update",
|
||||
]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user