OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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; | |
6 | |
7 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
8 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
9 | 7 |
10 main() { | 8 main() { |
11 forBothPubGetAndUpgrade((command) { | 9 forBothPubGetAndUpgrade((command) { |
12 integration("removes a transitive dependency that's no longer depended " | 10 integration("removes a transitive dependency that's no longer depended " |
13 "on", () { | 11 "on", () { |
14 servePackages((builder) { | 12 servePackages((builder) { |
15 builder.serve("foo", "1.0.0", deps: { | 13 builder.serve("foo", "1.0.0", deps: { |
16 "shared_dep": "any" | 14 "shared_dep": "any" |
(...skipping 26 matching lines...) Expand all Loading... |
43 | 41 |
44 d.packagesDir({ | 42 d.packagesDir({ |
45 "foo": "1.0.0", | 43 "foo": "1.0.0", |
46 "bar": null, | 44 "bar": null, |
47 "shared_dep": "1.0.0", | 45 "shared_dep": "1.0.0", |
48 "bar_dep": null, | 46 "bar_dep": null, |
49 }).validate(); | 47 }).validate(); |
50 }); | 48 }); |
51 }); | 49 }); |
52 } | 50 } |
OLD | NEW |