Konfig in robot.json

This commit is contained in:
chk
2026-06-11 22:05:45 +02:00
parent 05355facf1
commit 66a8e247b5
18 changed files with 1761 additions and 151 deletions

View File

@@ -43,7 +43,7 @@ describe('startRobot orchestrator', () => {
consoleObj: { log: jest.fn(), warn: jest.fn(), error: jest.fn() }
});
expect(readFileSync).toHaveBeenCalledTimes(2);
expect(readFileSync).toHaveBeenCalledTimes(3); // key, cert, data/robot/robot.json
expect(httpsModuleMock.createServer).toHaveBeenCalledWith({
enable: true,
key: 'fake-key',
@@ -61,7 +61,8 @@ describe('startRobot orchestrator', () => {
expect.objectContaining({ name: 'Base', instance: expect.any(Object) }),
expect.objectContaining({ name: 'Elbow', instance: expect.any(Object) }),
expect.objectContaining({ name: 'Hand', instance: expect.any(Object) })
])
]),
expect.objectContaining({}) // options: { apiKey }
);
expect(httpsServerMock.listen).toHaveBeenCalledWith(2095);