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

Unified Diff: pkg/oauth2/test/handle_access_token_response_test.dart

Issue 187843006: pkg/oauth2 bringing tests into 2014 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final nit Created 6 years, 10 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 | « pkg/oauth2/test/credentials_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/test/handle_access_token_response_test.dart
diff --git a/pkg/oauth2/test/handle_access_token_response_test.dart b/pkg/oauth2/test/handle_access_token_response_test.dart
index c36286847b62dd8f330102c1d93f2d1107ab4e3a..d97ef3860a648cfc436dc582fa5dc2f2cb8428f2 100644
--- a/pkg/oauth2/test/handle_access_token_response_test.dart
+++ b/pkg/oauth2/test/handle_access_token_response_test.dart
@@ -38,8 +38,7 @@ void main() {
});
test('with an unexpected code causes a FormatException', () {
- expect(() => handleError(statusCode: 500),
- throwsFormatException);
+ expect(() => handleError(statusCode: 500), throwsFormatException);
});
test('with no content-type causes a FormatException', () {
@@ -60,13 +59,11 @@ void main() {
});
test('with invalid JSON causes a FormatException', () {
- expect(() => handleError(body: 'not json'),
- throwsFormatException);
+ expect(() => handleError(body: 'not json'), throwsFormatException);
});
test('with a non-string error causes a FormatException', () {
- expect(() => handleError(body: '{"error": 12}'),
- throwsFormatException);
+ expect(() => handleError(body: '{"error": 12}'), throwsFormatException);
});
test('with a non-string error_description causes a FormatException', () {
« no previous file with comments | « pkg/oauth2/test/credentials_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698