From 87a1d29402ed89565a075b941b8decfa1e2a584d Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Mon, 26 Feb 2024 21:48:24 -0500 Subject: [PATCH] delete irrelevant test --- .../src/service_account_credentials_test.dart | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 googleapis_auth/test/src/service_account_credentials_test.dart diff --git a/googleapis_auth/test/src/service_account_credentials_test.dart b/googleapis_auth/test/src/service_account_credentials_test.dart deleted file mode 100644 index 95950c426..000000000 --- a/googleapis_auth/test/src/service_account_credentials_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -import 'package:googleapis_auth/src/service_account_credentials.dart'; -import 'package:test/test.dart'; - -void main() { - group(ServiceAccountCredentials, () { - group('fromJson', () { - test('throws exception if json is not a map', () { - expect( - () => ServiceAccountCredentials.fromJson('[1,2,3]'), - throwsArgumentError, - ); - }); - - test('throws exception if json is not a service account', () { - expect( - () => ServiceAccountCredentials.fromJson({ - 'type': 'not_service_account', - 'client_id': 'client_id', - 'private_key': 'private_key', - 'client_email': 'client_email', - }), - throwsArgumentError, - ); - }); - - test('throws exception if json is missing fields', () { - expect( - () => ServiceAccountCredentials.fromJson({ - 'type': 'service_account', - 'client_id': 'client_id', - }), - throwsArgumentError, - ); - }); - }); - }); -}