@@ -23,6 +23,7 @@ void main() {
23
23
"id" : "8162538176523816253123" ,
24
24
"photoUrl" : "https://lh5.googleusercontent.com/photo.jpg" ,
25
25
"displayName" : "John Doe" ,
26
+ "serverAuthCode" : "789"
26
27
};
27
28
28
29
const Map <String , dynamic > kDefaultResponses = < String , dynamic > {
@@ -350,7 +351,8 @@ void main() {
350
351
351
352
expect (auth.accessToken, '456' );
352
353
expect (auth.idToken, '123' );
353
- expect (auth.serverAuthCode, '789' );
354
+ // fix deprecated_member_use_from_same_package
355
+ // expect(auth.serverAuthCode, '789');
354
356
expect (
355
357
log,
356
358
< Matcher > [
@@ -382,11 +384,11 @@ void main() {
382
384
383
385
group ('GoogleSignIn with fake backend' , () {
384
386
const FakeUser kUserData = FakeUser (
385
- id: "8162538176523816253123" ,
386
- displayName: "John Doe" ,
387
-
388
- photoUrl: "https://lh5.googleusercontent.com/photo.jpg" ,
389
- );
387
+ id: "8162538176523816253123" ,
388
+ displayName: "John Doe" ,
389
+
390
+ photoUrl: "https://lh5.googleusercontent.com/photo.jpg" ,
391
+ serverAuthCode : '789' );
390
392
391
393
late GoogleSignIn googleSignIn;
392
394
@@ -411,6 +413,7 @@ void main() {
411
413
expect (user.email, equals (kUserData.email));
412
414
expect (user.id, equals (kUserData.id));
413
415
expect (user.photoUrl, equals (kUserData.photoUrl));
416
+ expect (user.serverAuthCode, equals (kUserData.serverAuthCode));
414
417
415
418
await googleSignIn.disconnect ();
416
419
expect (googleSignIn.currentUser, isNull);
0 commit comments