Skip to content

Commit

Permalink
fix: merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj Adhikari committed Nov 18, 2021
1 parent 4dcc71d commit ce6b92f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/widgets/components/modes_toolbar_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ void main() {

await tester.tap(find.widgetWithText(ModeIconButton, "A"));

verify(mockProvider.setThermostatMode('any', GThermostatMode.AUTO))
.called(1);
verify(mockProvider.setThermostatMode(any, GThermostatMode.AUTO)).called(1);
});

testWidgets('ModesToolbar - button should set mode to cool when pressed',
Expand All @@ -50,8 +49,7 @@ void main() {

await tester.tap(find.widgetWithIcon(ModeIconButton, Icons.ac_unit));

verify(mockProvider.setThermostatMode('any', GThermostatMode.COOL))
.called(1);
verify(mockProvider.setThermostatMode(any, GThermostatMode.COOL)).called(1);
});

testWidgets('ModesToolbar - button should set mode to heat when pressed',
Expand All @@ -60,8 +58,7 @@ void main() {

await tester.tap(find.widgetWithIcon(ModeIconButton, Icons.whatshot));

verify(mockProvider.setThermostatMode('any', GThermostatMode.HEAT))
.called(1);
verify(mockProvider.setThermostatMode(any, GThermostatMode.HEAT)).called(1);
});

testWidgets('ModesToolbar - button should set mode to eco when pressed',
Expand All @@ -70,7 +67,7 @@ void main() {

await tester.tap(find.widgetWithIcon(ModeIconButton, Icons.eco));

verify(mockProvider.setThermostatMode('any', GThermostatMode.AIRFLOW))
verify(mockProvider.setThermostatMode(any, GThermostatMode.AIRFLOW))
.called(1);
});
}

0 comments on commit ce6b92f

Please sign in to comment.