refactor: Improve formatting and readability of secret-exit transition test
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -47,7 +47,9 @@ void main() {
|
||||
expect(engine.player.y, closeTo(4.5, 0.001));
|
||||
});
|
||||
|
||||
test('secret-exit transitions clear keys but preserve other player state', () {
|
||||
test(
|
||||
'secret-exit transitions clear keys but preserve other player state',
|
||||
() {
|
||||
final input = _TestInput();
|
||||
final engine = WolfEngine(
|
||||
data: _buildSecretExitTestData(),
|
||||
@@ -71,7 +73,8 @@ void main() {
|
||||
..hasSilverKey = true;
|
||||
engine.player.weapons[WeaponType.machineGun] = MachineGun();
|
||||
engine.player.weapons[WeaponType.chainGun] = ChainGun();
|
||||
engine.player.currentWeapon = engine.player.weapons[WeaponType.chainGun]!;
|
||||
engine.player.currentWeapon =
|
||||
engine.player.weapons[WeaponType.chainGun]!;
|
||||
|
||||
input.isInteracting = true;
|
||||
engine.tick(const Duration(milliseconds: 16));
|
||||
@@ -106,7 +109,8 @@ void main() {
|
||||
expect(engine.player.currentWeapon.type, WeaponType.chainGun);
|
||||
expect(engine.player.hasGoldKey, isFalse);
|
||||
expect(engine.player.hasSilverKey, isFalse);
|
||||
});
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
group('Pause and main menu', () {
|
||||
|
||||
Reference in New Issue
Block a user