feat: update draw offer test to include draw decline scenario
Build & Test (NowChessSystems) TeamCity build finished
Build & Test (NowChessSystems) TeamCity build finished
This commit is contained in:
@@ -214,7 +214,7 @@ class GameEngineDrawOfferTest extends AnyFunSuite with Matchers:
|
|||||||
case other =>
|
case other =>
|
||||||
fail(s"Expected InvalidMoveEvent, but got $other")
|
fail(s"Expected InvalidMoveEvent, but got $other")
|
||||||
|
|
||||||
test("Draw offer is cleared when game ends by resignation"):
|
test("Draw offer is cleared when game ends by resignation (decline)"):
|
||||||
val engine = new GameEngine()
|
val engine = new GameEngine()
|
||||||
val observer = new DrawOfferMockObserver()
|
val observer = new DrawOfferMockObserver()
|
||||||
engine.subscribe(observer)
|
engine.subscribe(observer)
|
||||||
|
|||||||
Reference in New Issue
Block a user