UnitTests Sender

This commit is contained in:
ChK
2026-04-04 08:16:27 +02:00
parent ef490f1812
commit e90f044a30
3 changed files with 915 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
class MockCmdReceiver {
constructor(name = 'receiver') {
this.name = name
this.calls = []
}
moveTo(oldPos, newPos) {
this.calls.push({
oldPos,
newPos
})
}
get callCount() {
return this.calls.length
}
lastCall() {
return this.calls[this.calls.length - 1]
}
}
module.exports = MockCmdReceiver