feat: even more dart tests

This commit is contained in:
2025-01-08 20:33:59 +00:00
parent 4324d22bf8
commit 582b2aeef4
10 changed files with 716 additions and 6 deletions
@@ -0,0 +1,16 @@
import 'package:backend_dart/domain/errors/error.dart';
import 'package:backend_dart/domain/repository/auth_repository.dart';
import 'package:fpdart/fpdart.dart';
class MockAuthRepositoryImpl implements AuthRepository {
@override
TaskEither<IError, String> generateToken(String userId) =>
TaskEither.right('token');
@override
TaskEither<IError, String> validateToken(String token) =>
TaskEither.right('test_userId');
@override
TaskEither<IError, void> revokeToken(String token) => TaskEither.right(null);
}