OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'package:scheduled_test/scheduled_test.dart'; |
| 3 import '../descriptor.dart' as d; |
| 4 import '../test_pub.dart'; |
| 5 import '../serve/utils.dart'; |
| 6 main() { |
| 7 initConfig(); |
| 8 withBarbackVersions("any", () { |
| 9 integration( |
| 10 "fails to load an unconfigurable transformer when config is " "passed", |
| 11 () { |
| 12 d.dir(appPath, [d.pubspec({ |
| 13 "name": "myapp", |
| 14 "transformers": [{ |
| 15 "myapp/src/transformer": { |
| 16 'foo': 'bar' |
| 17 } |
| 18 }] |
| 19 }), |
| 20 d.dir( |
| 21 "lib", |
| 22 [d.dir("src", [d.file("transformer.dart", REWRITE_TRANSFORMER)])
])]).create(); |
| 23 createLockFile('myapp', pkg: ['barback']); |
| 24 var pub = startPubServe(); |
| 25 pub.stderr.expect( |
| 26 startsWith('No transformers that accept configuration ' 'were defined
in ')); |
| 27 pub.shouldExit(1); |
| 28 }); |
| 29 }); |
| 30 } |
OLD | NEW |