update tests

This commit is contained in:
Joe Danziger
2025-06-04 19:00:11 -04:00
parent 30e14eedc0
commit b46dc794d9
3 changed files with 18 additions and 18 deletions

View File

@@ -40,8 +40,8 @@ describe('Rules Files Inclusion in Package', () => {
const rooJsPath = path.join(process.cwd(), 'scripts', 'profiles', 'roo.js');
const rooJsContent = fs.readFileSync(rooJsPath, 'utf8');
// Check for the main handler function
expect(rooJsContent.includes('onAddRulesProfile(targetDir)')).toBe(true);
// Check for the main handler function
expect(rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)')).toBe(true);
// Check for general recursive copy of assets/roocode
expect(
@@ -50,7 +50,7 @@ describe('Rules Files Inclusion in Package', () => {
// Check for updated path handling
expect(
rooJsContent.includes("path.join(process.cwd(), 'assets', 'roocode')")
rooJsContent.includes("path.join(assetsDir, 'roocode')")
).toBe(true);
// Check for .roomodes file copying logic (source and destination paths)