Skip to content

Commit

Permalink
Revert a few more redundant test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelowolf committed Sep 4, 2024
1 parent 030131c commit c4b8eec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/firebase_auth_mocks_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,10 @@ void main() {
});

test('The customClaim should exist after sign-out and sign-in', () async {
final user = MockUser(customClaim: {'role': 'admin', 'bodyHeight': 169});
final auth = MockFirebaseAuth(mockUser: user, signedIn: true);
final auth = MockFirebaseAuth(
mockUser: MockUser(customClaim: {'role': 'admin', 'bodyHeight': 169}),
signedIn: true,
);
final decodedToken =
JwtDecoder.decode((await auth.currentUser!.getIdToken())!);
expect(decodedToken['role'], 'admin');
Expand Down

0 comments on commit c4b8eec

Please sign in to comment.