Makelore 2.0 initial clean snapshot

This commit is contained in:
inman
2026-07-29 17:22:35 +08:00
commit b8ca3f8eea
694 changed files with 139782 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { describe, expect, it, vi } from 'vitest';
import { createSignalQuitHandler } from '@electron/main/signal-quit';
describe('signal quit handler', () => {
it('logs and requests quit when signal is received', () => {
const logInfo = vi.fn();
const requestQuit = vi.fn();
const handler = createSignalQuitHandler({ logInfo, requestQuit });
handler('SIGTERM');
expect(logInfo).toHaveBeenCalledWith('Received SIGTERM; requesting app quit');
expect(requestQuit).toHaveBeenCalledTimes(1);
});
});