refactoring
This commit is contained in:
@@ -68,8 +68,9 @@ class MockDashboardRepository extends _i1.Mock
|
||||
@override
|
||||
_i4.Future<_i2.Either<_i5.Failure, _i7.DashboardEntity>> getDashboardData(
|
||||
String? organizationId,
|
||||
String? userId,
|
||||
) =>
|
||||
String? userId, {
|
||||
bool? useGlobalDashboard = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getDashboardData,
|
||||
@@ -77,6 +78,7 @@ class MockDashboardRepository extends _i1.Mock
|
||||
organizationId,
|
||||
userId,
|
||||
],
|
||||
{#useGlobalDashboard: useGlobalDashboard},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<_i2.Either<_i5.Failure, _i7.DashboardEntity>>.value(
|
||||
@@ -88,6 +90,7 @@ class MockDashboardRepository extends _i1.Mock
|
||||
organizationId,
|
||||
userId,
|
||||
],
|
||||
{#useGlobalDashboard: useGlobalDashboard},
|
||||
),
|
||||
)),
|
||||
) as _i4.Future<_i2.Either<_i5.Failure, _i7.DashboardEntity>>);
|
||||
|
||||
@@ -68,8 +68,9 @@ class MockDashboardRepository extends _i1.Mock
|
||||
@override
|
||||
_i4.Future<_i2.Either<_i5.Failure, _i7.DashboardEntity>> getDashboardData(
|
||||
String? organizationId,
|
||||
String? userId,
|
||||
) =>
|
||||
String? userId, {
|
||||
bool? useGlobalDashboard = false,
|
||||
}) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#getDashboardData,
|
||||
@@ -77,6 +78,7 @@ class MockDashboardRepository extends _i1.Mock
|
||||
organizationId,
|
||||
userId,
|
||||
],
|
||||
{#useGlobalDashboard: useGlobalDashboard},
|
||||
),
|
||||
returnValue:
|
||||
_i4.Future<_i2.Either<_i5.Failure, _i7.DashboardEntity>>.value(
|
||||
@@ -88,6 +90,7 @@ class MockDashboardRepository extends _i1.Mock
|
||||
organizationId,
|
||||
userId,
|
||||
],
|
||||
{#useGlobalDashboard: useGlobalDashboard},
|
||||
),
|
||||
)),
|
||||
) as _i4.Future<_i2.Either<_i5.Failure, _i7.DashboardEntity>>);
|
||||
|
||||
Reference in New Issue
Block a user