just_audio_test.dart 501 B

12345678910111213141516171819202122
  1. import 'package:flutter/services.dart';
  2. import 'package:flutter_test/flutter_test.dart';
  3. import 'package:just_audio/just_audio.dart';
  4. void main() {
  5. const MethodChannel channel = MethodChannel('just_audio');
  6. setUp(() {
  7. channel.setMockMethodCallHandler((MethodCall methodCall) async {
  8. return '42';
  9. });
  10. });
  11. tearDown(() {
  12. channel.setMockMethodCallHandler(null);
  13. });
  14. // test('getPlatformVersion', () async {
  15. // expect(await AudioPlayer.platformVersion, '42');
  16. // });
  17. }