| Index: utils/tests/pub/validator_test.dart
|
| diff --git a/utils/tests/pub/validator_test.dart b/utils/tests/pub/validator_test.dart
|
| index bc4e30e4fa2f6662ff9ed229a460fbcb7ff074e3..bfbcfcb465249879709d081940e386f43c3a0cc6 100644
|
| --- a/utils/tests/pub/validator_test.dart
|
| +++ b/utils/tests/pub/validator_test.dart
|
| @@ -120,7 +120,7 @@ main() {
|
|
|
| integration('has an unconstrained dependency on "unittest"', () {
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'hosted': 'unittest'}
|
| ])
|
| ]).scheduleCreate();
|
| @@ -330,7 +330,7 @@ main() {
|
| }));
|
|
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'git': 'git://github.com/dart-lang/foo'}
|
| ])
|
| ]).scheduleCreate();
|
| @@ -354,7 +354,7 @@ main() {
|
| }));
|
|
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'git': 'git://github.com/dart-lang/foo'}
|
| ])
|
| ]).scheduleCreate();
|
| @@ -378,7 +378,7 @@ main() {
|
| }));
|
|
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'git': 'git://github.com/dart-lang/foo'}
|
| ])
|
| ]).scheduleCreate();
|
| @@ -399,7 +399,7 @@ main() {
|
| }));
|
|
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {
|
| 'git': {'url': 'git://github.com/dart-lang/foo'},
|
| 'version': '>=1.0.0 <2.0.0'
|
| @@ -422,7 +422,7 @@ main() {
|
| }));
|
|
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {
|
| 'git': {'url': 'git://github.com/dart-lang/foo'},
|
| 'version': '0.2.3'
|
| @@ -440,7 +440,7 @@ main() {
|
| group('and it should not suggest a version', () {
|
| integration("if there's no lockfile", () {
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'hosted': 'foo'}
|
| ])
|
| ]).scheduleCreate();
|
| @@ -452,7 +452,7 @@ main() {
|
| integration("if the lockfile doesn't have an entry for the "
|
| "dependency", () {
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'hosted': 'foo'}
|
| ]),
|
| file("pubspec.lock", json.stringify({
|
| @@ -478,7 +478,7 @@ main() {
|
| integration('and it should suggest a constraint based on the locked '
|
| 'version', () {
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'hosted': 'foo'}
|
| ]),
|
| file("pubspec.lock", json.stringify({
|
| @@ -503,7 +503,7 @@ main() {
|
| integration('and it should suggest a concrete constraint if the locked '
|
| 'version is pre-1.0.0', () {
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'hosted': 'foo'}
|
| ]),
|
| file("pubspec.lock", json.stringify({
|
| @@ -529,7 +529,7 @@ main() {
|
|
|
| integration('has a hosted dependency on itself', () {
|
| dir(appPath, [
|
| - libPubspec("test_pkg", "1.0.0", [
|
| + libPubspec("test_pkg", "1.0.0", deps: [
|
| {'hosted': {'name': 'test_pkg', 'version': '>=1.0.0'}}
|
| ])
|
| ]).scheduleCreate();
|
|
|