@@ -71,24 +71,21 @@ void main() {
71
71
debugDefaultTargetPlatformOverride = null ;
72
72
});
73
73
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 ;
78
76
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
+ );
84
82
85
- final googlePlayServiceAvailability =
83
+ final googlePlayServiceAvailability =
86
84
await const GoogleApiAvailability .private ()
87
85
.makeGooglePlayServicesAvailable ();
88
86
89
- expect (googlePlayServiceAvailability,
90
- false );
91
- });
87
+ expect (googlePlayServiceAvailability, false );
88
+ });
92
89
93
90
test (
94
91
'Should receive true when device is able to set Google Play Services to available' ,
@@ -123,24 +120,21 @@ void main() {
123
120
debugDefaultTargetPlatformOverride = null ;
124
121
});
125
122
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 ;
130
126
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
+ );
136
132
137
- final errorStringResult =
138
- await const GoogleApiAvailability .private ()
139
- .getErrorString ();
133
+ final errorStringResult =
134
+ await const GoogleApiAvailability .private ().getErrorString ();
140
135
141
- expect (errorStringResult,
142
- "ErrorString is null" );
143
- });
136
+ expect (errorStringResult, "ErrorString is null" );
137
+ });
144
138
145
139
test ('Should receive SUCCESS when connection status is success' , () async {
146
140
MethodChannelMock (
@@ -168,24 +162,20 @@ void main() {
168
162
debugDefaultTargetPlatformOverride = null ;
169
163
});
170
164
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 ;
175
167
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
+ );
181
173
182
- final isUserResolvableResult =
183
- await const GoogleApiAvailability .private ()
184
- .isUserResolvable ();
174
+ final isUserResolvableResult =
175
+ await const GoogleApiAvailability .private ().isUserResolvable ();
185
176
186
- expect (isUserResolvableResult,
187
- false );
188
- });
177
+ expect (isUserResolvableResult, false );
178
+ });
189
179
190
180
test ('Should receive true when error is user resolvable' , () async {
191
181
MethodChannelMock (
@@ -213,24 +203,20 @@ void main() {
213
203
debugDefaultTargetPlatformOverride = null ;
214
204
});
215
205
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 ;
220
208
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
+ );
226
214
227
- final showErrorNotificationResult =
228
- await const GoogleApiAvailability .private ()
229
- .showErrorNotification ();
215
+ final showErrorNotificationResult =
216
+ await const GoogleApiAvailability .private ().showErrorNotification ();
230
217
231
- expect (showErrorNotificationResult,
232
- false );
233
- });
218
+ expect (showErrorNotificationResult, false );
219
+ });
234
220
235
221
test ('Should receive true when notification is shown' , () async {
236
222
MethodChannelMock (
0 commit comments