refactor(tests): NCS-23 improve CommandInvoker tests for clarity and coverage
Build & Test (NowChessSystems) TeamCity build failed
Build & Test (NowChessSystems) TeamCity build failed
This commit is contained in:
+1
@@ -52,6 +52,7 @@ class GameEngineCoverageRegressionTest extends AnyFunSuite with Matchers:
|
|||||||
} shouldBe true
|
} shouldBe true
|
||||||
|
|
||||||
test("loadGame returns Left when importer fails"):
|
test("loadGame returns Left when importer fails"):
|
||||||
|
|
||||||
val engine = new GameEngine()
|
val engine = new GameEngine()
|
||||||
val failingImporter = new GameContextImport:
|
val failingImporter = new GameContextImport:
|
||||||
def importGameContext(input: String): Either[String, GameContext] = Left("boom")
|
def importGameContext(input: String): Either[String, GameContext] = Left("boom")
|
||||||
|
|||||||
Reference in New Issue
Block a user