pull/449/head
Erick Zanardo 3 years ago
parent 6d0ea6c7fc
commit d6facca233

@ -357,15 +357,15 @@ void main() {
).thenAnswer((_) async => pool); ).thenAnswer((_) async => pool);
}); });
test('plays the bumper A sound pool', () async { test('plays the bumper A sound pool', () async {
when(seed.nextBool).thenReturn(true); when(seed.nextBool).thenReturn(true);
await Future.wait( await Future.wait(
audioPlayer.load().map((loadableBuilder) => loadableBuilder()), audioPlayer.load().map((loadableBuilder) => loadableBuilder()),
); );
audioPlayer.play(PinballAudio.flipper); audioPlayer.play(PinballAudio.flipper);
verify(() => pool.start()).called(1); verify(() => pool.start()).called(1);
}); });
}); });
group('cow moo', () { group('cow moo', () {

Loading…
Cancel
Save