From b32361788db1b894d684729c629d1c33c68e70e1 Mon Sep 17 00:00:00 2001 From: The one with the braid Date: Sat, 7 Dec 2024 10:32:36 +0100 Subject: [PATCH] fix: analyzer --- test/commands_test.dart | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/test/commands_test.dart b/test/commands_test.dart index 7cc5f911..6122447a 100644 --- a/test/commands_test.dart +++ b/test/commands_test.dart @@ -536,15 +536,18 @@ void main() { FakeMatrixApi.calledEndpoints.clear(); final stdout = StringBuffer(); await client.parseAndRunCommand( - null, '/dm @alice:example.com --no-encryption', - stdout: stdout); + null, + '/dm @alice:example.com --no-encryption', + stdout: stdout, + ); expect( json.decode( - FakeMatrixApi.calledEndpoints['/client/v3/createRoom']?.first), + FakeMatrixApi.calledEndpoints['/client/v3/createRoom']?.first, + ), { 'invite': ['@alice:example.com'], 'is_direct': true, - 'preset': 'trusted_private_chat' + 'preset': 'trusted_private_chat', }); expect( (jsonDecode(stdout.toString()) as DefaultCommandOutput).rooms?.first, @@ -556,12 +559,16 @@ void main() { FakeMatrixApi.calledEndpoints.clear(); final stdout = StringBuffer(); await client.parseAndRunCommand( - null, '/create @alice:example.com --no-encryption', - stdout: stdout); + null, + '/create @alice:example.com --no-encryption', + stdout: stdout, + ); expect( - json.decode( - FakeMatrixApi.calledEndpoints['/client/v3/createRoom']?.first), - {'preset': 'private_chat'}); + json.decode( + FakeMatrixApi.calledEndpoints['/client/v3/createRoom']?.first, + ), + {'preset': 'private_chat'}, + ); expect( (jsonDecode(stdout.toString()) as DefaultCommandOutput).rooms?.first, '!1234:fakeServer.notExisting',