Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test(apps): update assertions for pm2Home parameter

Adam Eivy1087dd7a0355
diff --git a/server/routes/apps.test.js b/server/routes/apps.test.js
index 636485d376..ae600b0855 100644
--- a/server/routes/apps.test.js
+++ b/server/routes/apps.test.js
@@ -235,7 +235,7 @@ describe('Apps Routes', () => {
expect(response.status).toBe(200);
expect(response.body.success).toBe(true);
- expect(pm2Service.stopApp).toHaveBeenCalledWith('test-app');
+ expect(pm2Service.stopApp).toHaveBeenCalledWith('test-app', undefined);
});
it('should return 404 if app not found', async () => {
@@ -262,7 +262,7 @@ describe('Apps Routes', () => {
expect(response.status).toBe(200);
expect(response.body.success).toBe(true);
- expect(pm2Service.restartApp).toHaveBeenCalledWith('test-app');
+ expect(pm2Service.restartApp).toHaveBeenCalledWith('test-app', undefined);
});
it('should return 404 if app not found', async () => {