Skip to content

Commit

Permalink
Follow-up fix for dart-lang/build#2596 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Jan 14, 2020
1 parent 2981961 commit dcac318
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,7 +1,7 @@
language: dart

dart:
- 2.2.0
- 2.6.0
- dev

dart_task:
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Expand Up @@ -7,12 +7,12 @@ author: Kevin Moore <github@j832.com>
homepage: https://github.com/kevmoo/source_gen_test

environment:
sdk: '>=2.2.0 <3.0.0'
sdk: '>=2.6.0 <3.0.0'

dependencies:
analyzer: '>=0.33.3 <0.40.0'
build: '>=0.12.6 <2.0.0'
build_test: ^0.10.0
analyzer: '>=0.35.3 <0.40.0'
build: ^1.2.2
build_test: ^0.10.12
dart_style: ^1.2.0
meta: ^1.0.2
path: ^1.3.2
Expand Down
12 changes: 7 additions & 5 deletions test/init_library_reader_test.dart
@@ -1,5 +1,6 @@
import 'dart:io';

import 'package:build/build.dart';
import 'package:source_gen_test/src/init_library_reader.dart';
import 'package:test/test.dart';

Expand Down Expand Up @@ -46,11 +47,12 @@ void main() {
test('part instead', () async {
await expectLater(
() => initializeLibraryReaderForDirectory('test/src', 'test_part.dart'),
throwsA(isArgumentError
.having((ae) => ae.message, 'message',
'Does not seem to reference a Dart library.')
.having((ae) => ae.name, 'name', 'targetLibraryFileName')),
throwsA(isA<NonLibraryAssetException>().having(
(ae) => ae.assetId.toString(),
'assetId.toString()',
'__test__|lib/test_part.dart',
)),
);
}, skip: 'See dart-lang/build#2596');
});
});
}

0 comments on commit dcac318

Please sign in to comment.