pull/324/head
Erick Zanardo 3 years ago
parent 113ff294be
commit 4a359027bc

@ -155,10 +155,6 @@ void main() {
() => preCacheSingleAudio () => preCacheSingleAudio
.onCall('packages/pinball_audio/assets/sfx/launcher.mp3'), .onCall('packages/pinball_audio/assets/sfx/launcher.mp3'),
).called(1); ).called(1);
verify(
() => preCacheSingleAudio
.onCall('packages/pinball_audio/assets/sfx/after_launch.mp3'),
).called(1);
verify( verify(
() => preCacheSingleAudio () => preCacheSingleAudio
.onCall('packages/pinball_audio/assets/music/background.mp3'), .onCall('packages/pinball_audio/assets/music/background.mp3'),
@ -229,8 +225,8 @@ void main() {
group('launcher', () { group('launcher', () {
test('plays the correct file', () async { test('plays the correct file', () async {
await audio.load(); await Future.wait(player.load());
audio.launcher(); player.play(PinballAudio.launcher);
verify( verify(
() => playSingleAudio () => 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', () { group('ioPinballVoiceOver', () {
test('plays the correct file', () async { test('plays the correct file', () async {
await Future.wait(player.load()); await Future.wait(player.load());

Loading…
Cancel
Save