nur wenn xyz genaendert, dann senden
This commit is contained in:
@@ -98,8 +98,8 @@ describe('Robot.sendCommand & cmdReceivers', () => {
|
||||
test('Receiver-Reihenfolge bleibt erhalten', () => {
|
||||
const order = []
|
||||
|
||||
const r1 = { moveTo: () => order.push('r1') }
|
||||
const r2 = { moveTo: () => order.push('r2') }
|
||||
const r1 = { execCommand: () => order.push('r1') }
|
||||
const r2 = { execCommand: () => order.push('r2') }
|
||||
|
||||
robot.cmdReceivers.push(r1, r2)
|
||||
robot.sendCommand()
|
||||
|
||||
Reference in New Issue
Block a user