add visual samples index tests to CI (#597)

pull/614/head
John Ryan 5 years ago committed by GitHub
parent a29be3d45e
commit 1d33b3dcf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,6 +57,15 @@ jobs:
script: "./tool/travis_flutter_script.sh"
env: FLUTTER_VERSION=beta
- name: Visual samples index tests
os: linux
dist: trusty
env: FLUTTER_VERSION=stable
script:
- cd web/samples_index
- ../../flutter/bin/dart pub get
- ../../flutter/bin/dart test
allow_failures:
- env: FLUTTER_VERSION=beta

@ -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', () {

Loading…
Cancel
Save