Skip to content

Commit

Permalink
Merge pull request #30 from eBay/make-test-golden-not-async
Browse files Browse the repository at this point in the history
Make test golden not async
  • Loading branch information
aanelson authored Feb 28, 2020
2 parents d5b441a + 0b8eca1 commit 91841e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/golden_toolkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.3

Removed Future return type from `testGoldens`.

## 0.2.2

Added `deviceSetup` to multiscreenGolden to allow pumping customization when device configuration (ex: screen size) changes
Expand Down
4 changes: 2 additions & 2 deletions packages/golden_toolkit/lib/src/testing_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ bool _inGoldenTest = false;
/// [test] test body
///
@isTestGroup
Future<void> testGoldens(
void testGoldens(
String description,
Future<void> Function(WidgetTester) test, {
bool skip = false,
}) async {
}) {
group(description, () {
testWidgets('Golden', (tester) async {
_inGoldenTest = true;
Expand Down

0 comments on commit 91841e1

Please sign in to comment.