Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Sep 11, 2024
1 parent d1fc7a9 commit 32d4571
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 189 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ bump: ## Bump beta version
.PHONY: mock
mock: ## Mock dependencies
dart run build_runner build --delete-conflicting-outputs
make format

.PHONY: build-l10n
build-l10n: ## Build localization
Expand Down
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 32d4571

Please sign in to comment.