| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 8 | 8 |
| 9 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
| 10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
| 11 import 'utils.dart'; | 11 import 'utils.dart'; |
| 12 | 12 |
| 13 void main() { | 13 void main() { |
| 14 initConfig(); | |
| 15 | |
| 16 integration("reports no dependencies if no transformers are used", () { | 14 integration("reports no dependencies if no transformers are used", () { |
| 17 d.dir(appPath, [ | 15 d.dir(appPath, [ |
| 18 d.pubspec({ | 16 d.pubspec({ |
| 19 "name": "myapp", | 17 "name": "myapp", |
| 20 "dependencies": {"foo": {"path": "../foo"}} | 18 "dependencies": {"foo": {"path": "../foo"}} |
| 21 }) | 19 }) |
| 22 ]).create(); | 20 ]).create(); |
| 23 | 21 |
| 24 d.dir("foo", [d.libPubspec("foo", "1.0.0")]).create(); | 22 d.dir("foo", [d.libPubspec("foo", "1.0.0")]).create(); |
| 25 | 23 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 ]) | 150 ]) |
| 153 ]).create(); | 151 ]).create(); |
| 154 | 152 |
| 155 expectDependencies({ | 153 expectDependencies({ |
| 156 'myapp/first': [], | 154 'myapp/first': [], |
| 157 'myapp/second': [], | 155 'myapp/second': [], |
| 158 'myapp/third': [] | 156 'myapp/third': [] |
| 159 }); | 157 }); |
| 160 }); | 158 }); |
| 161 } | 159 } |
| OLD | NEW |