Skip to content

Commit

Permalink
fix: correct format
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed May 18, 2024
1 parent fba6fe0 commit 9703085
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 189 deletions.
9 changes: 3 additions & 6 deletions test/mocks/mock_auth.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
);
}

class _FakeStreamedResponse_1 extends _i1.SmartFake
implements _i2.StreamedResponse {
class _FakeStreamedResponse_1 extends _i1.SmartFake implements _i2.StreamedResponse {
_FakeStreamedResponse_1(
Object parent,
Invocation parentInvocation,
Expand Down Expand Up @@ -312,14 +311,12 @@ class MockClient extends _i1.Mock implements _i2.Client {
) as _i4.Future<_i9.Uint8List>);

@override
_i4.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) =>
(super.noSuchMethod(
_i4.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => (super.noSuchMethod(
Invocation.method(
#send,
[request],
),
returnValue:
_i4.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1(
returnValue: _i4.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1(
this,
Invocation.method(
#send,
Expand Down
3 changes: 1 addition & 2 deletions test/mocks/mock_cache.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import 'package:shared_preferences/shared_preferences.dart' as _i2;
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class

class _FakeSharedPreferences_0 extends _i1.SmartFake
implements _i2.SharedPreferences {
class _FakeSharedPreferences_0 extends _i1.SmartFake implements _i2.SharedPreferences {
_FakeSharedPreferences_0(
Object parent,
Invocation parentInvocation,
Expand Down
13 changes: 4 additions & 9 deletions test/mocks/mock_database.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ class MockDatabase extends _i1.Mock implements _i4.Database {
) as _i3.Future<int>);

@override
_i3.Future<T> transaction<T>(
_i3.Future<T> Function(_i2.DatabaseExecutor)? action) =>
(super.noSuchMethod(
_i3.Future<T> transaction<T>(_i3.Future<T> Function(_i2.DatabaseExecutor)? action) => (super.noSuchMethod(
Invocation.method(
#transaction,
[action],
Expand Down Expand Up @@ -257,8 +255,7 @@ class MockDatabase extends _i1.Mock implements _i4.Database {
#escapeTable: escapeTable,
},
),
returnValue: _i3.Future<List<Map<String, Object?>>>.value(
<Map<String, Object?>>[]),
returnValue: _i3.Future<List<Map<String, Object?>>>.value(<Map<String, Object?>>[]),
) as _i3.Future<List<Map<String, Object?>>>);

@override
Expand Down Expand Up @@ -383,8 +380,7 @@ class MockDatabaseExecutor extends _i1.Mock implements _i2.DatabaseExecutor {
#offset: offset,
},
),
returnValue: _i3.Future<List<Map<String, Object?>>>.value(
<Map<String, Object?>>[]),
returnValue: _i3.Future<List<Map<String, Object?>>>.value(<Map<String, Object?>>[]),
) as _i3.Future<List<Map<String, Object?>>>);

@override
Expand All @@ -400,8 +396,7 @@ class MockDatabaseExecutor extends _i1.Mock implements _i2.DatabaseExecutor {
arguments,
],
),
returnValue: _i3.Future<List<Map<String, Object?>>>.value(
<Map<String, Object?>>[]),
returnValue: _i3.Future<List<Map<String, Object?>>>.value(<Map<String, Object?>>[]),
) as _i3.Future<List<Map<String, Object?>>>);

@override
Expand Down
Loading

0 comments on commit 9703085

Please sign in to comment.