refactor: Remove FluffyClient and make it no longer static
This commit is contained in:
parent
6d4af6be05
commit
2320f6b707
8 changed files with 71 additions and 67 deletions
|
|
@ -2,8 +2,15 @@ import 'package:fluffychat/pages/homeserver_picker.dart';
|
|||
import 'package:fluffychat/main.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'utils/test_client.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Test if the widget can be created', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(FluffyChatApp(testWidget: HomeserverPicker()));
|
||||
await tester.pumpWidget(
|
||||
FluffyChatApp(
|
||||
client: await prepareTestClient(),
|
||||
testWidget: HomeserverPicker(),
|
||||
),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue