Skip to content

Commit

Permalink
Follow-up fix for dart-lang/build#2596
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Jan 14, 2020
1 parent 2981961 commit 3cff547
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -12,7 +12,7 @@ environment:
dependencies:
analyzer: '>=0.33.3 <0.40.0'
build: '>=0.12.6 <2.0.0'
build_test: ^0.10.0
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 3cff547

Please sign in to comment.