Files

14 lines
388 B
TypeScript
Raw Permalink Normal View History

2026-05-05 12:03:45 +00:00
import { expect, tap } from '@git.zone/tstest/tapbundle';
import { ShxHub } from '../ts/index.js';
tap.test('creates a hub snapshot', async () => {
const hub = new ShxHub();
await hub.start();
const snapshot = hub.getSnapshot();
expect(snapshot.devices.length).toBeGreaterThan(0);
expect(snapshot.agents.length).toEqual(6);
await hub.stop();
});
export default tap.start();