This commit is contained in:
agrapine
2019-08-07 15:37:44 +01:00
commit 810d060d44
84 changed files with 2114 additions and 0 deletions

21
test/ux_test.dart Normal file
View File

@@ -0,0 +1,21 @@
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ux/ux.dart';
void main() {
const MethodChannel channel = MethodChannel('ux');
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('getPlatformVersion', () async {
expect(await Ux.platformVersion, '42');
});
}