mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-08-26 00:52:07 +00:00
17 lines
548 B
TypeScript
17 lines
548 B
TypeScript
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('Brain device identity supply chain', () => {
|
|
it('exports the main-process installation identity to the Brain process', () => {
|
|
const source = fs.readFileSync(
|
|
path.resolve(process.cwd(), 'electron/main/index.ts'),
|
|
'utf-8'
|
|
);
|
|
|
|
expect(source).toContain(
|
|
'EIGENT_DESKTOP_INSTANCE_ID: resolveDesktopInstanceId()'
|
|
);
|
|
expect(source).toContain('await primeDesktopInstanceIdFromRenderer()');
|
|
});
|
|
});
|