Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Use locked formatter output for the preservation assertion

pulse-triage[bot]a01f3769efb5
diff --git a/frontend-modern/src/utils/__tests__/agentInstallCommand.test.ts b/frontend-modern/src/utils/__tests__/agentInstallCommand.test.ts
index 58aa58508a..b5b1f87ba1 100644
--- a/frontend-modern/src/utils/__tests__/agentInstallCommand.test.ts
+++ b/frontend-modern/src/utils/__tests__/agentInstallCommand.test.ts
@@ -613,9 +613,9 @@ describe('terminal-to-runtime token-file preservation', { timeout: 25_000 }, ()
expect(readFileSync(join(fixture.dir, 'saved-changed'), 'utf8')).toBe(
phase === 0 || input !== inputs[phase - 1] ? 'true' : 'false',
);
- expect(
- execFileSync('stat', ['-c', '%a', state], { encoding: 'utf8' }).trim(),
- ).toBe('700');
+ expect(execFileSync('stat', ['-c', '%a', state], { encoding: 'utf8' }).trim()).toBe(
+ '700',
+ );
expect(
execFileSync('stat', ['-c', '%a', join(state, 'token')], { encoding: 'utf8' }).trim(),
).toBe('600');