Project template
This commit is contained in:
commit
64dcdc8e9c
84 changed files with 2057 additions and 0 deletions
21
test/audio_player_test.dart
Normal file
21
test/audio_player_test.dart
Normal file
|
@ -0,0 +1,21 @@
|
|||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:audio_player/audio_player.dart';
|
||||
|
||||
void main() {
|
||||
const MethodChannel channel = MethodChannel('audio_player');
|
||||
|
||||
setUp(() {
|
||||
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
||||
return '42';
|
||||
});
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
channel.setMockMethodCallHandler(null);
|
||||
});
|
||||
|
||||
test('getPlatformVersion', () async {
|
||||
expect(await AudioPlayer.platformVersion, '42');
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue