Skip to content

Commit 15bbf19

Browse files
update tests and remove debugger
1 parent aaaa44f commit 15bbf19

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

core/tools/implementations/createRuleBlock.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ test("createRuleBlockImpl should create a rule with glob pattern", async () => {
3636
const { frontmatter, markdown } = parseMarkdownRule(fileContent);
3737

3838
expect(frontmatter).toEqual({
39+
alwaysApply: true,
3940
description: "Always use interfaces",
4041
globs: "**/*.{ts,tsx}",
4142
});
@@ -72,6 +73,7 @@ test("createRuleBlockImpl should create a rule with description pattern", async
7273
const { frontmatter, markdown } = parseMarkdownRule(fileContent);
7374

7475
expect(frontmatter).toEqual({
76+
alwaysApply: true,
7577
description: "This is a detailed explanation of the rule",
7678
});
7779

@@ -94,6 +96,7 @@ test("createRuleBlockImpl should include both globs and description in frontmatt
9496
const { frontmatter, markdown } = parseMarkdownRule(fileContent);
9597

9698
expect(frontmatter).toEqual({
99+
alwaysApply: false,
97100
description: "This rule enforces our team standards",
98101
globs: "**/*.js",
99102
});
@@ -116,6 +119,7 @@ test("createRuleBlockImpl should create a rule with alwaysApply set to false", a
116119
const { frontmatter } = parseMarkdownRule(fileContent);
117120

118121
expect(frontmatter).toEqual({
122+
alwaysApply: false,
119123
description: "Optional rule",
120124
});
121125
});

gui/src/components/GenerateRuleDialog/GenerationScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export function GenerationScreen({
9292
}
9393

9494
try {
95-
debugger;
9695
const options: any = {
9796
alwaysApply: formData.alwaysApply,
9897
};

gui/src/components/GenerateRuleDialog/useRuleGeneration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export function useRuleGeneration(
8282
setCreateRuleBlockArgs(null);
8383

8484
try {
85-
debugger;
8685
// Convert current history to ChatMessage format
8786
const chatMessages: ChatMessage[] = currentHistory.map(
8887
(item) => item.message,

0 commit comments

Comments
 (0)