-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
2edb5b0
commit 336de14
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,6 +142,28 @@ void main() { | |
expect(user.uid, importUser.uid); | ||
}); | ||
}); | ||
|
||
group('updateUser', () { | ||
test('supports updating email', () async { | ||
final user = await auth.createUser( | ||
CreateRequest( | ||
email: '[email protected]', | ||
), | ||
); | ||
|
||
final updatedUser = await auth.updateUser( | ||
user.uid, | ||
UpdateRequest( | ||
email: '[email protected]', | ||
), | ||
); | ||
|
||
expect(updatedUser.email, equals('[email protected]')); | ||
|
||
final user2 = await auth.getUserByEmail(updatedUser.email!); | ||
expect(user2.uid, equals(user.uid)); | ||
}); | ||
}); | ||
} | ||
|
||
Future<void> cleanup(Auth auth) async { | ||
|