OLD | NEW |
(Empty) | |
| 1 import '../descriptor.dart' as d; |
| 2 import '../test_pub.dart'; |
| 3 import '../serve/utils.dart'; |
| 4 main() { |
| 5 initConfig(); |
| 6 integration("doesn't support invalid commandLineOptions type", () { |
| 7 d.dir(appPath, [d.pubspec({ |
| 8 "name": "myapp", |
| 9 "transformers": [{ |
| 10 "\$dart2js": { |
| 11 "commandLineOptions": "foo" |
| 12 } |
| 13 }] |
| 14 }), d.dir("web", [d.file("main.dart", "void main() {}")])]).create(); |
| 15 var server = pubServe(); |
| 16 requestShould404("main.dart.js"); |
| 17 server.stderr.expect( |
| 18 emitsLines( |
| 19 'Build error:\n' 'Transform Dart2JS on myapp|web/main.dart threw err
or: ' |
| 20 'Invalid value for \$dart2js.commandLineOptions: ' |
| 21 '"foo" (expected list of strings).')); |
| 22 endPubServe(); |
| 23 }); |
| 24 } |
OLD | NEW |