From e74a0d40ff61c5dc0e4fa554848651cd886910ed Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 27 Jan 2021 14:08:37 +0530 Subject: [PATCH] [LLC] Fix tests Signed-off-by: Sahil Kumar --- .../dart_client/test/src/client_test.dart | 50 ++----------------- 1 file changed, 3 insertions(+), 47 deletions(-) diff --git a/packages/dart_client/test/src/client_test.dart b/packages/dart_client/test/src/client_test.dart index 8f4dc41e..011789be 100644 --- a/packages/dart_client/test/src/client_test.dart +++ b/packages/dart_client/test/src/client_test.dart @@ -41,10 +41,7 @@ void main() { }); test('should create the object correctly', () { - final client = Client( - 'api-key', - persistenceEnabled: false, - ); + final client = Client('api-key'); expect(client.baseURL, 'chat-us-east-1.stream-io-api.com'); expect(client.apiKey, 'api-key'); @@ -60,7 +57,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, connectTimeout: Duration(seconds: 10), receiveTimeout: Duration(seconds: 12), logLevel: Level.INFO, @@ -82,10 +78,7 @@ void main() { })); test('Channel', () { - final client = Client( - 'test', - persistenceEnabled: false, - ); + final client = Client('test'); final Map data = {'test': 1}; final channelClient = client.channel('type', id: 'id', extraData: data); expect(channelClient.type, 'type'); @@ -103,7 +96,6 @@ void main() { final client = Client( 'api-key', httpClient: mockDio, - persistenceEnabled: false, ); final queryParams = { @@ -135,7 +127,6 @@ void main() { final client = Client( 'api-key', httpClient: mockDio, - persistenceEnabled: false, ); final queryFilter = { @@ -186,7 +177,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -215,7 +205,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -260,7 +249,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -287,7 +275,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -307,7 +294,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -323,10 +309,7 @@ void main() { }); test('devToken', () { - final client = Client( - 'api-key', - persistenceEnabled: false, - ); + final client = Client('api-key'); final token = client.devToken('test'); expect( @@ -344,7 +327,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -373,7 +355,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -417,7 +398,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -439,7 +419,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -455,7 +434,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -477,7 +455,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -503,7 +480,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -533,7 +509,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -555,7 +530,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -578,7 +552,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -600,7 +573,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -624,7 +596,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -646,7 +617,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -668,7 +638,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -696,7 +665,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -718,7 +686,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -740,7 +707,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -763,7 +729,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -789,7 +754,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: dioHttp, ); @@ -809,7 +773,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -833,7 +796,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: dioHttp, ); @@ -853,7 +815,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -877,7 +838,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: dioHttp, ); @@ -897,7 +857,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -922,7 +881,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: dioHttp, ); @@ -942,7 +900,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: mockDio, ); @@ -968,7 +925,6 @@ void main() { final client = Client( 'api-key', - persistenceEnabled: false, httpClient: dioHttp, );