@@ -153,28 +153,33 @@ void main() {
153153 );
154154 });
155155
156- // test('Assets with No lists on pubspec.yaml', () async {
157- // expect(() async {
158- // return FlutterGenerator(
159- // File('test_resources/pubspec_assets_no_list.yaml'))
160- // .build();
161- // }, throwsA(isA<InvalidSettingsException>()));
162- // });
163- //
164- // test('Wrong fonts settings on pubspec.yaml', () async {
165- // expect(() async {
166- // return FlutterGenerator(
167- // File('test_resources/pubspec_fonts_no_family.yaml'))
168- // .build();
169- // }, throwsA(isA<InvalidSettingsException>()));
170- // });
171- //
172- // test('Wrong colors settings on pubspec.yaml', () async {
173- // expect(() async {
174- // return FlutterGenerator(
175- // File('test_resources/pubspec_colors_no_inputs.yaml'))
176- // .build();
177- // }, throwsA(isA<InvalidSettingsException>()));
178- // });
156+ test ('Assets with No lists on pubspec.yaml' , () async {
157+ await FlutterGenerator (File ('test_resources/pubspec_assets_no_list.yaml' ))
158+ .build ();
159+ expect (
160+ File ('test_resources/lib/gen/assets.gen.dart' ).existsSync (),
161+ isFalse,
162+ );
163+ });
164+
165+ test ('Wrong fonts settings on pubspec.yaml' , () async {
166+ await FlutterGenerator (
167+ File ('test_resources/pubspec_fonts_no_family.yaml' ))
168+ .build ();
169+ expect (
170+ File ('test_resources/lib/gen/fonts.gen.dart' ).existsSync (),
171+ isFalse,
172+ );
173+ });
174+
175+ test ('Wrong colors settings on pubspec.yaml' , () async {
176+ await FlutterGenerator (
177+ File ('test_resources/pubspec_colors_no_inputs.yaml' ))
178+ .build ();
179+ expect (
180+ File ('test_resources/lib/gen/colors.gen.dart' ).existsSync (),
181+ isFalse,
182+ );
183+ });
179184 });
180185}
0 commit comments