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.
18 lines
645 B
TypeScript
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);
|
|
});
|
|
});
|