Files
AetherForge/server/web/src/help/installPreview.test.ts
drjones df81eb7744 Add fleet ops dashboard, Calibrate enforcement, and dead-code cleanup.
Ship live alerts, pool status, AI monitor, remote agent commands, build manager, and uninstall flow; wire Calibrate settings (WS ping, pool traffic log, retention limits) at runtime and exclude server/data from git.
2026-05-27 09:16:04 -07:00

18 lines
645 B
TypeScript

import { describe, expect, it } from 'vitest';
import { previewInstallPath } from './installPreview';
describe('previewInstallPath', () => {
it('expands worker and build tokens (F-14)', () => {
const path = previewInstallPath({
install_base: 'localappdata',
install_relative_path: 'CryptoMiner/{worker}-{build_short}',
worker_name: 'office-pc',
process_name: 'RuntimeHelper',
});
expect(path).toContain('office-pc-abc12345');
expect(path).toContain('CryptoMiner\\office-pc-abc12345');
expect(path).toContain('RuntimeHelper.exe');
expect(path.startsWith('%LOCALAPPDATA%')).toBe(true);
});
});