17 lines
413 B
Dart
17 lines
413 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:qhd_prevention/services/auth_service.dart';
|
|
|
|
void main() {
|
|
test('stops login processing when the login API reports failure', () {
|
|
expect(
|
|
AuthService.isLoginResponseSuccessful({
|
|
'success': false,
|
|
'errCode': 'BIZ_ERROR',
|
|
'errMessage': '解密失败',
|
|
'data': null,
|
|
}),
|
|
isFalse,
|
|
);
|
|
});
|
|
}
|