add platform_detector_test.dart

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-06-03 22:29:52 +05:30
parent 7a95192093
commit 473851684b
2 changed files with 27 additions and 3 deletions
@@ -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;
},
);
});