From b47f51abd5463e690b9313d990b70691c7a3776a Mon Sep 17 00:00:00 2001 From: Marcin Szalek Date: Mon, 14 May 2018 19:41:54 +0200 Subject: [PATCH] Tests cleanup --- test/widget_tests/progress_chart_test.dart | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/widget_tests/progress_chart_test.dart diff --git a/test/widget_tests/progress_chart_test.dart b/test/widget_tests/progress_chart_test.dart deleted file mode 100644 index c7e2acd..0000000 --- a/test/widget_tests/progress_chart_test.dart +++ /dev/null @@ -1,33 +0,0 @@ -import 'package:flutter/widgets.dart'; -import 'package:flutter_redux/flutter_redux.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:redux/redux.dart'; -import 'package:weight_tracker/logic/reducer.dart'; -import 'package:weight_tracker/logic/redux_state.dart' as rdx; -import 'package:weight_tracker/model/weight_entry.dart'; -import 'package:weight_tracker/widgets/progress_chart.dart'; - -void main() { - testWidgets("test", (WidgetTester tester) async { - //given - WeightEntry entry = new WeightEntry(new DateTime.now(), 70.0, null); - Store store = new Store( - reduce, - initialState: new rdx.ReduxState( - entries: [entry], - progressChartState: new rdx.ProgressChartState(daysToShow: 31), - ), - ); - await tester.pumpWidget(new StatefulBuilder( - builder: (BuildContext context, StateSetter setState) { - return new StoreProvider( - store: store, - child: new ProgressChart(), - ); - })); - //when - //TODO: Test gesture zoomin - //then - //expect(store.state.progressChartState.daysToShow, lessThan(31)); - }); -}