add platform_detector_test.dart
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -45,11 +45,10 @@ void main() {
|
||||
webSocketController.add(invocation.positionalArguments.first);
|
||||
});
|
||||
when(() => webSocketSink.close(any(), any())).thenAnswer(
|
||||
(_) {
|
||||
final res = webSocketController.close();
|
||||
(_) async {
|
||||
webSocketController.close();
|
||||
// re-initializing for future events
|
||||
webSocketController = StreamController<String>.broadcast();
|
||||
return res;
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user