From 4a359027bc42ce4f0b4f923bc75d729fe2b5c894 Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Thu, 5 May 2022 14:35:06 -0300 Subject: [PATCH] fix test --- .../test/src/pinball_audio_test.dart | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/packages/pinball_audio/test/src/pinball_audio_test.dart b/packages/pinball_audio/test/src/pinball_audio_test.dart index ee26b683..fdcd661b 100644 --- a/packages/pinball_audio/test/src/pinball_audio_test.dart +++ b/packages/pinball_audio/test/src/pinball_audio_test.dart @@ -155,10 +155,6 @@ void main() { () => preCacheSingleAudio .onCall('packages/pinball_audio/assets/sfx/launcher.mp3'), ).called(1); - verify( - () => preCacheSingleAudio - .onCall('packages/pinball_audio/assets/sfx/after_launch.mp3'), - ).called(1); verify( () => preCacheSingleAudio .onCall('packages/pinball_audio/assets/music/background.mp3'), @@ -229,8 +225,8 @@ void main() { group('launcher', () { test('plays the correct file', () async { - await audio.load(); - audio.launcher(); + await Future.wait(player.load()); + player.play(PinballAudio.launcher); verify( () => playSingleAudio @@ -239,18 +235,6 @@ void main() { }); }); - group('launcherRoll', () { - test('plays the correct file', () async { - await audio.load(); - audio.launcherRoll(); - - verify( - () => playSingleAudio - .onCall('packages/pinball_audio/${Assets.sfx.afterLaunch}'), - ).called(1); - }); - }); - group('ioPinballVoiceOver', () { test('plays the correct file', () async { await Future.wait(player.load());