blob: c53079c06cb65730ad3b9719da9b01fcf161cc39 [file] [log] [blame]
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test/test.dart';
import '../../descriptor.dart' as d;
import '../../test_pub.dart';
void main() {
// Regression test for issue 22194.
'gets a dependency with broken dev dependencies from a pub '
'server', () async {
await servePackages((builder) {
builder.serve('foo', '1.2.3', pubspec: {
'dev_dependencies': {
'busted': {'not a real source': null}
await d.appDir({'foo': '1.2.3'}).create();
await pubGet();
await d.cacheDir({'foo': '1.2.3'}).validate();
await d.appPackagesFile({'foo': '1.2.3'}).validate();