| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_uploader_test; | |
| 6 | |
| 7 import 'dart:convert'; | 5 import 'dart:convert'; |
| 8 | 6 |
| 9 import 'package:pub/src/exit_codes.dart' as exit_codes; | 7 import 'package:pub/src/exit_codes.dart' as exit_codes; |
| 10 import 'package:pub/src/utils.dart'; | 8 import 'package:pub/src/utils.dart'; |
| 11 import 'package:scheduled_test/scheduled_process.dart'; | 9 import 'package:scheduled_test/scheduled_process.dart'; |
| 12 import 'package:scheduled_test/scheduled_server.dart'; | 10 import 'package:scheduled_test/scheduled_server.dart'; |
| 13 import 'package:scheduled_test/scheduled_test.dart'; | 11 import 'package:scheduled_test/scheduled_test.dart'; |
| 14 import 'package:shelf/shelf.dart' as shelf; | 12 import 'package:shelf/shelf.dart' as shelf; |
| 15 | 13 |
| 16 import 'descriptor.dart' as d; | 14 import 'descriptor.dart' as d; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 157 |
| 160 server.handle('DELETE', '/api/packages/pkg/uploaders/email', | 158 server.handle('DELETE', '/api/packages/pkg/uploaders/email', |
| 161 (request) => new shelf.Response.ok("{not json")); | 159 (request) => new shelf.Response.ok("{not json")); |
| 162 | 160 |
| 163 pub.stderr.expect(emitsLines( | 161 pub.stderr.expect(emitsLines( |
| 164 'Invalid server response:\n' | 162 'Invalid server response:\n' |
| 165 '{not json')); | 163 '{not json')); |
| 166 pub.shouldExit(1); | 164 pub.shouldExit(1); |
| 167 }); | 165 }); |
| 168 } | 166 } |
| OLD | NEW |