File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
packages/netglade_utils/lib/src/testing Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -26,24 +26,6 @@ extension VerificationResultEx on VerificationResult {
26
26
void calledOnce () => called (1 );
27
27
}
28
28
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
-
47
29
extension SuccessAnswer <T , E > on When <Future <Result <T , E >>> {
48
30
void thenAnswerWithSuccess (T value) => thenAnswer ((_) async => Success (value));
49
31
}
You can’t perform that action at this time.
0 commit comments