File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ void main() {
204204 var app = admin.initializeApp (mocks.appOptions);
205205 expect (app.options.credential, TypeMatcher <ServiceAccountCredential >());
206206 expect (app.options.databaseUrl, 'https://databaseName.firebaseio.com' );
207- expect (app.options.projectId, null );
207+ expect (app.options.projectId, 'project_id' );
208208 expect (app.options.storageBucket, 'bucketName.appspot.com' );
209209 });
210210
Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ void main() {
788788 var token = await auth.createCustomToken (uid, {'isAdmin' : true });
789789 var decodedToken = IdToken .unverified (token);
790790 expect (decodedToken.claims['uid' ], uid);
791- expect (decodedToken.claims['isAdmin' ], isTrue);
791+ expect (decodedToken.claims['claims' ][ ' isAdmin' ], isTrue);
792792
793793 var jwks = JsonWebKeySet .fromJson (json.decode (
794794 File ('test/resources/openid-jwks.json' ).readAsStringSync ()));
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ var storageBucket = 'bucketName.appspot.com';
1313var credential = FirebaseAdmin .instance.testCredentials ();
1414
1515var appOptions = AppOptions (
16+ projectId: projectId,
1617 credential: credential,
1718 databaseUrl: databaseURL,
1819 storageBucket: storageBucket,
You can’t perform that action at this time.
0 commit comments