Skip to content

Commit

Permalink
fixup! fix: analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
ttypic committed Oct 8, 2024
1 parent e88867b commit dcaaa3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/ably_flutter_plugin_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ void main() {
const _nativeLibraryVersion = '1.1.0';

setUp(() {
channel.setMockMethodCallHandler((methodCall) async {
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(
channel,
(methodCall) async {
switch (methodCall.method) {
case PlatformMethod.resetAblyClients:
return true;
Expand All @@ -39,7 +42,8 @@ void main() {
});

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

test(PlatformMethod.getPlatformVersion, () async {
Expand Down

0 comments on commit dcaaa3c

Please sign in to comment.