Skip to content

Commit

Permalink
Merge pull request #144 from AgoraIO-Community/test-fix
Browse files Browse the repository at this point in the history
update unit tests
  • Loading branch information
Meherdeep authored Jun 19, 2023
2 parents 5c8b251 + 4596ca4 commit 724183b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/agora_flutter_uikit_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ void main() {
TestWidgetsFlutterBinding.ensureInitialized();

setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, (MethodCall methodCall) async {
return '42';
});
});

tearDown(() {
channel.setMockMethodCallHandler(null);
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(
channel,
null,
);
});

test('getPlatformVersion', () async {
Expand Down

0 comments on commit 724183b

Please sign in to comment.