Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: test/cascade_test.dart

Issue 837193005: pkg/shelf: formatted code (Closed) Base URL: https://github.com/dart-lang/shelf.git@master
Patch Set: nits Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | test/create_middleware_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cascade_test.dart
diff --git a/test/cascade_test.dart b/test/cascade_test.dart
index 59dfcfad07626bd6920de6b9cb92b960bbde738d..bf21aeba5fa9e4e4d981b082a44f0b57d25b1e4e 100644
--- a/test/cascade_test.dart
+++ b/test/cascade_test.dart
@@ -45,8 +45,8 @@ void main() {
test("the second response should be returned if it matches and the first "
"doesn't", () {
return syncFuture(() {
- return handler(new Request('GET', LOCALHOST_URI,
- headers: {'one': 'false'}));
+ return handler(
+ new Request('GET', LOCALHOST_URI, headers: {'one': 'false'}));
}).then((response) {
expect(response.statusCode, equals(200));
expect(response.readAsString(), completion(equals('handler 2')));
@@ -115,7 +115,7 @@ void main() {
test('[shouldCascade] controls which responses cause cascading', () {
var handler = new Cascade(
- shouldCascade: (response) => response.statusCode % 2 == 1)
+ shouldCascade: (response) => response.statusCode % 2 == 1)
.add((_) => new Response.movedPermanently('/'))
.add((_) => new Response.forbidden('handler 2'))
.add((_) => new Response.notFound('handler 3'))
@@ -135,8 +135,8 @@ void main() {
test('passing [statusCodes] and [shouldCascade] at the same time fails',
() {
- expect(() => new Cascade(
- statusCodes: [404, 405], shouldCascade: (_) => false),
+ expect(() =>
+ new Cascade(statusCodes: [404, 405], shouldCascade: (_) => false),
throwsArgumentError);
});
});
« no previous file with comments | « pubspec.yaml ('k') | test/create_middleware_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698