Skip to content

Commit

Permalink
Remove '!'
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenevides committed Aug 9, 2023
1 parent c874aab commit 80787f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pusher_channels_flutter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ void main() {
TestWidgetsFlutterBinding.ensureInitialized();

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

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

0 comments on commit 80787f8

Please sign in to comment.