Skip to content

Commit

Permalink
[Tests] Minor weapon check
Browse files Browse the repository at this point in the history
Wolfteam committed Sep 1, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 30f9754 commit bd39e5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/infrastructure/file/weapon_file_service_test.dart
Original file line number Diff line number Diff line change
@@ -43,9 +43,12 @@ void main() {
expect(detail.craftingMaterials, isEmpty);
}

for (final ascMaterial in detail.ascensionMaterials) {
for (int i = 0; i < detail.ascensionMaterials.length; i++) {
final ascMaterial = detail.ascensionMaterials[i];
expect(ascMaterial.level, inInclusiveRange(20, 80));
checkItemAscensionMaterialFileModel(service.materials, ascMaterial.materials);
final expectedLength = i == 0 && detail.rarity == 1 ? 3 : 4;
expect(ascMaterial.materials.length, expectedLength);
}

final ascensionNumber = detail.stats.where((el) => el.isAnAscension).length;

0 comments on commit bd39e5f

Please sign in to comment.