1차 보완(0.1.1+14) 내용 합치기
This commit is contained in:
@@ -90,20 +90,31 @@ void main() {
|
||||
expect((outcome as AuthSucceeded).account.uid, 'u-1');
|
||||
});
|
||||
|
||||
test('다른 이메일이면 E-AUTH-08 · 이메일 안내 문구', () async {
|
||||
test('다른 계정에 붙은 카카오면 E-AUTH-08 · 세션 만료면 다시 로그인 안내', () async {
|
||||
final auth = MockFirebaseAuth(
|
||||
signedIn: true,
|
||||
mockUser: MockUser(uid: 'u-1'),
|
||||
);
|
||||
final outcome = await kakao(
|
||||
final inUse = await kakao(
|
||||
auth,
|
||||
serverError: FirebaseFunctionsException(
|
||||
code: 'already-exists',
|
||||
message: 'x',
|
||||
details: {'code': 'E-AUTH-08', 'reason': 'different-email'},
|
||||
details: {'code': 'E-AUTH-08'},
|
||||
),
|
||||
).link(auth.currentUser!);
|
||||
expect((outcome as AuthFailed).code, 'E-AUTH-08');
|
||||
expect((inUse as AuthFailed).code, 'E-AUTH-08');
|
||||
expect(inUse.message, '다른 FANUZU 계정에 이미 연결된 소셜 계정입니다.');
|
||||
|
||||
final expired = await kakao(
|
||||
auth,
|
||||
serverError: FirebaseFunctionsException(
|
||||
code: 'permission-denied',
|
||||
message: 'x',
|
||||
details: {'code': 'E-AUTH-03', 'reason': 'session'},
|
||||
),
|
||||
).link(auth.currentUser!);
|
||||
expect((expired as AuthFailed).message, '보안을 위해 다시 로그인한 뒤 시도해 주세요.');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user