Skip to content

Commit

Permalink
fix: fix tests after previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Oct 16, 2023
1 parent 3622706 commit 0350097
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/cli/test/behavior/buy_ship_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 10 additions & 0 deletions packages/cli/test/behavior/mount_from_buy_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0350097

Please sign in to comment.