From 0350097d6bba6c464fbe953fb5fa1d9da82d0829 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Sun, 15 Oct 2023 17:39:06 -0700 Subject: [PATCH] fix: fix tests after previous change --- packages/cli/test/behavior/buy_ship_test.dart | 11 +++++++++++ packages/cli/test/behavior/mount_from_buy_test.dart | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/packages/cli/test/behavior/buy_ship_test.dart b/packages/cli/test/behavior/buy_ship_test.dart index fa5b4ef3..15d10086 100644 --- a/packages/cli/test/behavior/buy_ship_test.dart +++ b/packages/cli/test/behavior/buy_ship_test.dart @@ -58,6 +58,17 @@ void main() { when(() => ship.engine).thenReturn(shipEngine); const shipSpeed = 30; when(() => shipEngine.speed).thenReturn(shipSpeed); + when(() => ship.mounts).thenReturn([]); + when(() => ship.modules).thenReturn([]); + when(() => ship.reactor).thenReturn( + ShipReactor( + symbol: ShipReactorSymbolEnum.ANTIMATTER_I, + name: 'name', + description: 'description', + powerOutput: 0, + requirements: ShipRequirements(), + ), + ); final symbol = WaypointSymbol.fromString('S-A-W'); when(() => caches.agent.headquartersSymbol).thenReturn(symbol); diff --git a/packages/cli/test/behavior/mount_from_buy_test.dart b/packages/cli/test/behavior/mount_from_buy_test.dart index a3c7525d..4ee3a4a2 100644 --- a/packages/cli/test/behavior/mount_from_buy_test.dart +++ b/packages/cli/test/behavior/mount_from_buy_test.dart @@ -61,6 +61,16 @@ void main() { requirements: ShipRequirements(), ), ]); + when(() => ship.modules).thenReturn([]); + when(() => ship.reactor).thenReturn( + ShipReactor( + symbol: ShipReactorSymbolEnum.ANTIMATTER_I, + name: 'name', + description: 'description', + powerOutput: 0, + requirements: ShipRequirements(), + ), + ); when(() => caches.agent.headquartersSymbol).thenReturn(symbol); when(() => ship.fuel).thenReturn(ShipFuel(current: 100, capacity: 100)); final shipEngine = _MockShipEngine();