fix formatting
This commit is contained in:
@@ -22,7 +22,9 @@ describe('Roo Files Inclusion in Package', () => {
|
|||||||
const rooJsContent = fs.readFileSync(rooJsPath, 'utf8');
|
const rooJsContent = fs.readFileSync(rooJsPath, 'utf8');
|
||||||
|
|
||||||
// Check for the main handler function
|
// Check for the main handler function
|
||||||
expect(rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)')).toBe(true);
|
expect(
|
||||||
|
rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)')
|
||||||
|
).toBe(true);
|
||||||
|
|
||||||
// Check for general recursive copy of assets/roocode
|
// Check for general recursive copy of assets/roocode
|
||||||
expect(
|
expect(
|
||||||
@@ -30,9 +32,7 @@ describe('Roo Files Inclusion in Package', () => {
|
|||||||
).toBe(true);
|
).toBe(true);
|
||||||
|
|
||||||
// Check for updated path handling
|
// Check for updated path handling
|
||||||
expect(
|
expect(rooJsContent.includes("path.join(assetsDir, 'roocode')")).toBe(true);
|
||||||
rooJsContent.includes("path.join(assetsDir, 'roocode')")
|
|
||||||
).toBe(true);
|
|
||||||
|
|
||||||
// Check for .roomodes file copying logic (source and destination paths)
|
// Check for .roomodes file copying logic (source and destination paths)
|
||||||
expect(rooJsContent.includes("path.join(sourceDir, '.roomodes')")).toBe(
|
expect(rooJsContent.includes("path.join(sourceDir, '.roomodes')")).toBe(
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ describe('Roo Profile Initialization Functionality', () => {
|
|||||||
|
|
||||||
test('roo.js profile ensures Roo directory structure via onAddRulesProfile', () => {
|
test('roo.js profile ensures Roo directory structure via onAddRulesProfile', () => {
|
||||||
// Check if onAddRulesProfile function exists
|
// Check if onAddRulesProfile function exists
|
||||||
expect(rooProfileContent).toContain('onAddRulesProfile(targetDir, assetsDir)');
|
expect(rooProfileContent).toContain(
|
||||||
|
'onAddRulesProfile(targetDir, assetsDir)'
|
||||||
|
);
|
||||||
|
|
||||||
// Check for the general copy of assets/roocode which includes .roo base structure
|
// Check for the general copy of assets/roocode which includes .roo base structure
|
||||||
expect(rooProfileContent).toContain(
|
expect(rooProfileContent).toContain(
|
||||||
@@ -35,7 +37,9 @@ describe('Roo Profile Initialization Functionality', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('roo.js profile copies .roomodes file via onAddRulesProfile', () => {
|
test('roo.js profile copies .roomodes file via onAddRulesProfile', () => {
|
||||||
expect(rooProfileContent).toContain('onAddRulesProfile(targetDir, assetsDir)');
|
expect(rooProfileContent).toContain(
|
||||||
|
'onAddRulesProfile(targetDir, assetsDir)'
|
||||||
|
);
|
||||||
|
|
||||||
// Check for the specific .roomodes copy logic
|
// Check for the specific .roomodes copy logic
|
||||||
expect(rooProfileContent).toContain(
|
expect(rooProfileContent).toContain(
|
||||||
@@ -50,7 +54,9 @@ describe('Roo Profile Initialization Functionality', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('roo.js profile copies mode-specific rule files via onAddRulesProfile', () => {
|
test('roo.js profile copies mode-specific rule files via onAddRulesProfile', () => {
|
||||||
expect(rooProfileContent).toContain('onAddRulesProfile(targetDir, assetsDir)');
|
expect(rooProfileContent).toContain(
|
||||||
|
'onAddRulesProfile(targetDir, assetsDir)'
|
||||||
|
);
|
||||||
expect(rooProfileContent).toContain('for (const mode of ROO_MODES)');
|
expect(rooProfileContent).toContain('for (const mode of ROO_MODES)');
|
||||||
|
|
||||||
// Check for the specific mode rule file copy logic
|
// Check for the specific mode rule file copy logic
|
||||||
|
|||||||
@@ -41,7 +41,9 @@ describe('Rules Files Inclusion in Package', () => {
|
|||||||
const rooJsContent = fs.readFileSync(rooJsPath, 'utf8');
|
const rooJsContent = fs.readFileSync(rooJsPath, 'utf8');
|
||||||
|
|
||||||
// Check for the main handler function
|
// Check for the main handler function
|
||||||
expect(rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)')).toBe(true);
|
expect(
|
||||||
|
rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)')
|
||||||
|
).toBe(true);
|
||||||
|
|
||||||
// Check for general recursive copy of assets/roocode
|
// Check for general recursive copy of assets/roocode
|
||||||
expect(
|
expect(
|
||||||
@@ -49,9 +51,7 @@ describe('Rules Files Inclusion in Package', () => {
|
|||||||
).toBe(true);
|
).toBe(true);
|
||||||
|
|
||||||
// Check for updated path handling
|
// Check for updated path handling
|
||||||
expect(
|
expect(rooJsContent.includes("path.join(assetsDir, 'roocode')")).toBe(true);
|
||||||
rooJsContent.includes("path.join(assetsDir, 'roocode')")
|
|
||||||
).toBe(true);
|
|
||||||
|
|
||||||
// Check for .roomodes file copying logic (source and destination paths)
|
// Check for .roomodes file copying logic (source and destination paths)
|
||||||
expect(rooJsContent.includes("path.join(sourceDir, '.roomodes')")).toBe(
|
expect(rooJsContent.includes("path.join(sourceDir, '.roomodes')")).toBe(
|
||||||
|
|||||||
Reference in New Issue
Block a user