Skip to content

Commit

Permalink
✅ Update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Dec 15, 2024
1 parent b5a86e4 commit c421d94
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/core/test/assets_gen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:io';
import 'package:dart_style/dart_style.dart';
import 'package:dartx/dartx.dart';
import 'package:flutter_gen_core/generators/assets_generator.dart';
import 'package:flutter_gen_core/generators/generator_helper.dart';
import 'package:flutter_gen_core/settings/asset_type.dart';
import 'package:flutter_gen_core/settings/config.dart';
import 'package:flutter_gen_core/utils/error.dart';
Expand Down Expand Up @@ -267,4 +268,37 @@ void main() {
expectedPackageNameGen(pubspec, fact);
});
});

group('gen helper', () {
test('build deprecations', () {
expect(
sBuildDeprecation(
'style',
'asset',
'asset.output',
'https://github.com/FlutterGen/flutter_gen/pull/294',
[
' assets:',
' outputs:',
' style: snake-case',
],
),
equals('''
┌─────────────────────────────────────────────────────────────────┐
| ⚠️ Warning |
| The style option has been moved from `asset` to `asset.output`. |
| It should be changed in the `pubspec.yaml`. |
| https://github.com/FlutterGen/flutter_gen/pull/294 |
| |
| ```yaml |
| flutter_gen: |
| assets: |
| outputs: |
| style: snake-case |
| ``` |
└─────────────────────────────────────────────────────────────────┘
'''),
);
});
});
}

0 comments on commit c421d94

Please sign in to comment.