mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
add visual samples index tests to CI (#597)
This commit is contained in:
@@ -41,19 +41,6 @@ void main() {
|
||||
expect(sample.date, DateTime.parse('2019-12-15T02:59:43.1Z'));
|
||||
expect(sample.channel, 'stable');
|
||||
});
|
||||
|
||||
test('bad yaml', () async {
|
||||
var file = File('test/yaml/bad.yaml');
|
||||
var contents = await file.readAsString();
|
||||
expect(contents, isNotEmpty);
|
||||
|
||||
expect(
|
||||
() => checkedYamlDecode(contents, (m) => Index.fromJson(m),
|
||||
sourceUrl: file.uri),
|
||||
throwsA(predicate((e) =>
|
||||
e is ParsedYamlException &&
|
||||
e.message.endsWith('Unsupported value for "name".'))));
|
||||
});
|
||||
});
|
||||
|
||||
group('searching', () {
|
||||
|
||||
Reference in New Issue
Block a user