Skip to content

Commit

Permalink
[Test] Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Aug 24, 2022
1 parent c059828 commit 9c34e0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/db/characters.json
Expand Up @@ -11817,12 +11817,12 @@
"image": "dori.png",
"fullImage": "dori.png",
"secondFullImage": null,
"isComingSoon": false,
"isNew": true,
"isComingSoon": true,
"isNew": false,
"isFemale": true,
"region": "sumeru",
"role": "support",
"tier": "b",
"tier": "na",
"birthday": "12/21",
"subStatType": "hpPercentage",
"ascensionMaterials": [
Expand Down
Expand Up @@ -121,7 +121,7 @@ void main() {
build: () => BannerHistoryBloc(_genshinService, _telemetryService),
act: (bloc) => bloc.add(const BannerHistoryEvent.init()),
verify: (bloc) {
final charsWithoutBanner = ['aloy', 'mona', 'qiqi', 'amber', 'kaeya', 'lisa'];
final charsWithoutBanner = ['aloy', 'mona', 'qiqi', 'amber', 'kaeya', 'lisa', 'diluc', 'jean'];
final allCharsCount = _genshinService.characters
.getCharactersForCard()
.where((el) => !el.isComingSoon && !el.key.startsWith('traveler') && !charsWithoutBanner.contains(el.key))
Expand Down
2 changes: 1 addition & 1 deletion test/infrastructure/genshin_service_test.dart
Expand Up @@ -1081,7 +1081,7 @@ void main() {
final service = _getService();
await service.init(AppLanguageType.english);
final versions = service.bannerHistory.getBannerHistoryVersions(SortDirectionType.asc);
final expectedLength = ElementType.values.length - 1;
final expectedLength = ElementType.values.length;

final elements = service.bannerHistory.getElementsForCharts(versions.first, versions.last);
expect(elements.length, expectedLength);
Expand Down

0 comments on commit 9c34e0e

Please sign in to comment.