Skip to content

Commit

Permalink
Add a special case in unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
nekocode committed Sep 8, 2020
1 parent f40ab36 commit 90c132e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/flutter_gen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ void main() {
});

test('Assets with No inegrations on pubspec.yaml', () async {
await FlutterGenerator(
File('test_resources/pubspec_assets_no_integrations.yaml'))
.build();
expect(
File('test_resources/lib/gen/assets.gen.dart').readAsStringSync(),
isNotEmpty,
);

final pubspec = File('test_resources/pubspec_assets_no_integrations.yaml');
final config = await Config(pubspec).load();
final formatter = DartFormatter(pageWidth: config.flutterGen.lineLength);
Expand Down

0 comments on commit 90c132e

Please sign in to comment.