Created
May 1, 2019 22:07
-
-
Save gamebox/f8d46e4571b66aa8225bdf46ac9fced0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter_test/flutter_test.dart'; | |
void main() async { | |
LiveTestWidgetsFlutterBinding(); | |
Future outsideFuture; | |
setUp(() { | |
outsideFuture = Future.microtask(() { | |
return 'outside'; | |
}); | |
}); | |
testWidgets("awaiting future with value from setUp works", (t) async { | |
Future insideFuture = Future.microtask(() { | |
return 'inside'; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment