mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
fix: format test code
This commit is contained in:
@@ -202,8 +202,9 @@ part of 'test_widget.dart';
|
|||||||
|
|
||||||
mixin _\$TestWidget {
|
mixin _\$TestWidget {
|
||||||
void _inject(TestWidget instance) {
|
void _inject(TestWidget instance) {
|
||||||
instance.service =
|
instance.service = CherryPick.openScope(
|
||||||
CherryPick.openScope(scopeName: 'userScope').resolve<MyService>();
|
scopeName: 'userScope',
|
||||||
|
).resolve<MyService>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
''';
|
''';
|
||||||
@@ -406,10 +407,9 @@ mixin _\$TestWidget {
|
|||||||
instance.cacheService = CherryPick.openRootScope().tryResolve<CacheService>(
|
instance.cacheService = CherryPick.openRootScope().tryResolve<CacheService>(
|
||||||
named: 'cache',
|
named: 'cache',
|
||||||
);
|
);
|
||||||
instance.dbService =
|
instance.dbService = CherryPick.openScope(
|
||||||
CherryPick.openScope(
|
scopeName: 'dbScope',
|
||||||
scopeName: 'dbScope',
|
).resolveAsync<DatabaseService>();
|
||||||
).resolveAsync<DatabaseService>();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
''';
|
''';
|
||||||
@@ -451,10 +451,10 @@ part of 'test_widget.dart';
|
|||||||
mixin _\$TestWidget {
|
mixin _\$TestWidget {
|
||||||
void _inject(TestWidget instance) {
|
void _inject(TestWidget instance) {
|
||||||
instance.stringList = CherryPick.openRootScope().resolve<List<String>>();
|
instance.stringList = CherryPick.openRootScope().resolve<List<String>>();
|
||||||
instance.stringIntMap =
|
instance.stringIntMap = CherryPick.openRootScope()
|
||||||
CherryPick.openRootScope().resolve<Map<String, int>>();
|
.resolve<Map<String, int>>();
|
||||||
instance.futureStringList =
|
instance.futureStringList = CherryPick.openRootScope()
|
||||||
CherryPick.openRootScope().resolveAsync<List<String>>();
|
.resolveAsync<List<String>>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
''';
|
''';
|
||||||
|
|||||||
Reference in New Issue
Block a user