Update createRuleBlock.test.ts
This commit is contained in:
parent
8f393ff922
commit
6a540e11d5
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ describe("createRuleBlockImpl", () => {
|
|||
// Verify the YAML structure with globs
|
||||
const yamlContent = mockIde.writeFile.mock.calls[0][1];
|
||||
const parsedYaml = YAML.parse(yamlContent);
|
||||
\ expect(parsedYaml.rules[0]).toEqual({
|
||||
expect(parsedYaml.rules[0]).toEqual({
|
||||
name: "TypeScript Rule",
|
||||
rule: "Use interfaces for object shapes",
|
||||
globs: "**/*.{ts,tsx}",
|
||||
|
|
@ -80,4 +80,4 @@ describe("createRuleBlockImpl", () => {
|
|||
const fileUri = mockIde.writeFile.mock.calls[0][0];
|
||||
expect(fileUri).toContain("special-chracters-spaces.yaml");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue