Skip to content

Commit

Permalink
refactor: Fix lint issues across the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Aug 24, 2023
1 parent d172146 commit 89f02f3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/flame_lottie/test/flame_lottie_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,17 @@ void main() {

final mockAsset = FakeAssetBundle({'logo.json': logoData});

LottieComposition? composition;

final asset = Lottie.asset(
'logo.json',
bundle: mockAsset,
onLoaded: (c) {
composition = c;
},
);

composition = await loadLottie(asset);
final composition = await loadLottie(asset);

await game.ready();

expect(composition, isNotNull);
expect(
composition!.duration,
composition.duration,
const Duration(seconds: 5, milliseconds: 966),
);
},
Expand Down

0 comments on commit 89f02f3

Please sign in to comment.