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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
import { describe, expect, it, vi } from 'vitest';
import { runGoogleAutoConfig } from './apiCalendar';
import { request } from './apiCore';
vi.mock('./apiCore', () => ({ request: vi.fn().mockResolvedValue({ status: 'success' }) }));
describe('Google automation request payload', () => {
it('sends correlation in the body while preserving request options and legacy payloads', async () => {
await runGoogleAutoConfig('[email protected]', { requestId: 'invented-run-1', silent: true });
expect(request).toHaveBeenLastCalledWith('/calendar/google/auto-configure/run', {
method: 'POST', body: JSON.stringify({ email: '[email protected]', requestId: 'invented-run-1' }), silent: true,
});
await runGoogleAutoConfig('[email protected]');
expect(request).toHaveBeenLastCalledWith('/calendar/google/auto-configure/run', {
method: 'POST', body: JSON.stringify({ email: '[email protected]' }),
});
});
});