Skip to content

Commit 5d9e9b7

Browse files
committed
Update TODO
1 parent e75f56d commit 5d9e9b7

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

packages/netglade_utils/lib/src/testing/mock_extensions.dart

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,6 @@ extension VerificationResultEx on VerificationResult {
2626
void calledOnce() => called(1);
2727
}
2828

29-
// TODO(utils): add when we will add api service
30-
//
31-
// extension ApiFailureAnswer<T> on When<Future<Result<ApiResponseOk<T>, ApiResponseFail>>> {
32-
// void thenAnswerWithApiFailure(ApiError apiError) => thenAnswerWith(Error(ApiResponseFail(apiError: apiError)));
33-
// }
34-
35-
// extension ApiSuccessAnswer<T> on When<Future<Result<ApiResponseOk<T>, ApiResponseFail>>> {
36-
// void thenAnswerWithApiSuccess(T data) => thenAnswerWith(
37-
// Success(
38-
// ApiResponseOk(
39-
// data: data,
40-
// statusCode: 200,
41-
// response: Response('body', 200),
42-
// ),
43-
// ),
44-
// );
45-
// }
46-
4729
extension SuccessAnswer<T, E> on When<Future<Result<T, E>>> {
4830
void thenAnswerWithSuccess(T value) => thenAnswer((_) async => Success(value));
4931
}

0 commit comments

Comments
 (0)