Skip to content

Commit

Permalink
test: fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
sowens-csd committed Jun 25, 2023
1 parent e66d32f commit 959a967
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ void main() {

setUp(() {
speechToText = MethodChannelSpeechToText();
speechToText?.channel
.setMockMethodCallHandler(channelHandler.methodCallHandler);
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(
speechToText!.channel, channelHandler.methodCallHandler);
channelHandler.reset();
});

Expand Down

0 comments on commit 959a967

Please sign in to comment.