@@ -71,24 +71,21 @@ void main() {
7171 debugDefaultTargetPlatformOverride = null ;
7272 });
7373
74- test (
75- 'Should receive false when availability is null' ,
76- () async {
77- const availability = null ;
74+ test ('Should receive false when availability is null' , () async {
75+ const availability = null ;
7876
79- MethodChannelMock (
80- channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
81- method: 'makeGooglePlayServicesAvailable' ,
82- result: availability,
83- );
77+ MethodChannelMock (
78+ channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
79+ method: 'makeGooglePlayServicesAvailable' ,
80+ result: availability,
81+ );
8482
85- final googlePlayServiceAvailability =
83+ final googlePlayServiceAvailability =
8684 await const GoogleApiAvailability .private ()
8785 .makeGooglePlayServicesAvailable ();
8886
89- expect (googlePlayServiceAvailability,
90- false );
91- });
87+ expect (googlePlayServiceAvailability, false );
88+ });
9289
9390 test (
9491 'Should receive true when device is able to set Google Play Services to available' ,
@@ -123,24 +120,21 @@ void main() {
123120 debugDefaultTargetPlatformOverride = null ;
124121 });
125122
126- test (
127- 'Should receive "ErrorString is null" when availability is null' ,
128- () async {
129- const errorString = null ;
123+ test ('Should receive "ErrorString is null" when availability is null' ,
124+ () async {
125+ const errorString = null ;
130126
131- MethodChannelMock (
132- channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
133- method: 'getErrorString' ,
134- result: errorString,
135- );
127+ MethodChannelMock (
128+ channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
129+ method: 'getErrorString' ,
130+ result: errorString,
131+ );
136132
137- final errorStringResult =
138- await const GoogleApiAvailability .private ()
139- .getErrorString ();
133+ final errorStringResult =
134+ await const GoogleApiAvailability .private ().getErrorString ();
140135
141- expect (errorStringResult,
142- "ErrorString is null" );
143- });
136+ expect (errorStringResult, "ErrorString is null" );
137+ });
144138
145139 test ('Should receive SUCCESS when connection status is success' , () async {
146140 MethodChannelMock (
@@ -168,24 +162,20 @@ void main() {
168162 debugDefaultTargetPlatformOverride = null ;
169163 });
170164
171- test (
172- 'Should receive false when isUserResolvable is null' ,
173- () async {
174- const isUserResolvable = null ;
165+ test ('Should receive false when isUserResolvable is null' , () async {
166+ const isUserResolvable = null ;
175167
176- MethodChannelMock (
177- channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
178- method: 'isUserResolvable' ,
179- result: isUserResolvable,
180- );
168+ MethodChannelMock (
169+ channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
170+ method: 'isUserResolvable' ,
171+ result: isUserResolvable,
172+ );
181173
182- final isUserResolvableResult =
183- await const GoogleApiAvailability .private ()
184- .isUserResolvable ();
174+ final isUserResolvableResult =
175+ await const GoogleApiAvailability .private ().isUserResolvable ();
185176
186- expect (isUserResolvableResult,
187- false );
188- });
177+ expect (isUserResolvableResult, false );
178+ });
189179
190180 test ('Should receive true when error is user resolvable' , () async {
191181 MethodChannelMock (
@@ -213,24 +203,20 @@ void main() {
213203 debugDefaultTargetPlatformOverride = null ;
214204 });
215205
216- test (
217- 'Should receive false when showErrorNotification is null' ,
218- () async {
219- const showErrorNotification = null ;
206+ test ('Should receive false when showErrorNotification is null' , () async {
207+ const showErrorNotification = null ;
220208
221- MethodChannelMock (
222- channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
223- method: 'showErrorNotification' ,
224- result: showErrorNotification,
225- );
209+ MethodChannelMock (
210+ channelName: 'flutter.baseflow.com/google_api_availability/methods' ,
211+ method: 'showErrorNotification' ,
212+ result: showErrorNotification,
213+ );
226214
227- final showErrorNotificationResult =
228- await const GoogleApiAvailability .private ()
229- .showErrorNotification ();
215+ final showErrorNotificationResult =
216+ await const GoogleApiAvailability .private ().showErrorNotification ();
230217
231- expect (showErrorNotificationResult,
232- false );
233- });
218+ expect (showErrorNotificationResult, false );
219+ });
234220
235221 test ('Should receive true when notification is shown' , () async {
236222 MethodChannelMock (
0 commit comments