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() {
204
204
var app = admin.initializeApp (mocks.appOptions);
205
205
expect (app.options.credential, TypeMatcher <ServiceAccountCredential >());
206
206
expect (app.options.databaseUrl, 'https://databaseName.firebaseio.com' );
207
- expect (app.options.projectId, null );
207
+ expect (app.options.projectId, 'project_id' );
208
208
expect (app.options.storageBucket, 'bucketName.appspot.com' );
209
209
});
210
210
Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ void main() {
788
788
var token = await auth.createCustomToken (uid, {'isAdmin' : true });
789
789
var decodedToken = IdToken .unverified (token);
790
790
expect (decodedToken.claims['uid' ], uid);
791
- expect (decodedToken.claims['isAdmin' ], isTrue);
791
+ expect (decodedToken.claims['claims' ][ ' isAdmin' ], isTrue);
792
792
793
793
var jwks = JsonWebKeySet .fromJson (json.decode (
794
794
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';
13
13
var credential = FirebaseAdmin .instance.testCredentials ();
14
14
15
15
var appOptions = AppOptions (
16
+ projectId: projectId,
16
17
credential: credential,
17
18
databaseUrl: databaseURL,
18
19
storageBucket: storageBucket,
You can’t perform that action at this time.
0 commit comments