10 lines
526 B
Dart
10 lines
526 B
Dart
|
|
import 'package:halkyon_learn_flutter/src/core/dependencies/dependencies.dart';
|
||
|
|
import 'package:halkyon_learn_flutter/src/feature/auth/data/auth_gateway.dart';
|
||
|
|
import 'package:halkyon_learn_flutter/src/feature/auth/data/auth_repository.dart';
|
||
|
|
|
||
|
|
import 'fake_auth_gateway.dart';
|
||
|
|
|
||
|
|
/// The app's dependencies with fakes instead of the server; each test passes
|
||
|
|
/// in only the fakes it looks at.
|
||
|
|
Dependencies testDependencies({AuthGateway? authGateway}) =>
|
||
|
|
Dependencies(auth: AuthRepository(authGateway ?? FakeAuthGateway()));
|