21 lines
610 B
Dart
21 lines
610 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:yumi/shared/tools/sc_user_id_utils.dart';
|
|
|
|
void main() {
|
|
test('backend user id detector rejects display accounts', () {
|
|
expect(scLooksLikeBackendUserId('323456'), isFalse);
|
|
expect(scLooksLikeBackendUserId('223456'), isFalse);
|
|
expect(scLooksLikeBackendUserId('4569421795454615555'), isTrue);
|
|
});
|
|
|
|
test('first backend user id skips CP invite display accounts', () {
|
|
final userId = scFirstBackendUserId([
|
|
'323456',
|
|
'223456',
|
|
'4569421795454615555',
|
|
]);
|
|
|
|
expect(userId, '4569421795454615555');
|
|
});
|
|
}
|