Skip to content

Commit f66895d

Browse files
committed
fix tests
1 parent 8bc2651 commit f66895d

File tree

4 files changed

+28
-150
lines changed

4 files changed

+28
-150
lines changed

test/flutter_gen_test.dart

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

test_resources/lib/gen/assets.gen.dart

Lines changed: 0 additions & 71 deletions
This file was deleted.

test_resources/lib/gen/colors.gen.dart

Lines changed: 0 additions & 46 deletions
This file was deleted.

test_resources/lib/gen/fonts.gen.dart

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)