14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
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();
|